privefl / bigstatsr

R package for statistical tools with big matrices stored on disk.
https://privefl.github.io/bigstatsr/
179 stars 30 forks source link

Fixed and random effect #165

Closed dongleihu closed 6 months ago

dongleihu commented 1 year ago

Recently I started to use bigstatsr to run lasso regression. I would like to use age and sex as fixed effect and methylation as random effect in the model. Is there a way to do this in bigstatsr? Thank you!

privefl commented 1 year ago

Have you looked at the tutorial? You can add covariates, and you can choose whether to penalize them or not. Is this what you're looking for?

privefl commented 10 months ago

Any update on this?

dongleihu commented 10 months ago

Not really. Haven't tried it yet. Thanks for asking.

wangnanwei commented 10 months ago

I am not sure if I am right. PRS method is different from linear mixed model method. No random effects are in the PRS methods

privefl commented 6 months ago

Any update on this?

dongleihu commented 6 months ago

Thank you Florian. We have decided to take a different direction for this issue. I think this issue can be closed now.