natsuhiko / rasqual

Robust Allele Specific Quantification and quality controL
37 stars 20 forks source link

Do covariates need to be normalized? #38

Closed iamjli closed 4 years ago

iamjli commented 4 years ago

Can they take all positive values for instance?

Also, if we want to model a categorical variable, say male/female, can this be accomplished by just assigning 0/1s?

Thanks, Johnny

natsuhiko commented 4 years ago

Hi Johnny,

The raw counts are adjusted by covariates in the log scale, like the standard poisson linear regression with log link function. You can use any covariate, both numerical and categorical variables appropriately converted into dummy variables.

Best regards, Natsuhiko