junyangq / snpnet

snpnet: Fast and scalable lasso/elastic-net solver for large SNP data
32 stars 15 forks source link

How run snpnet without penalizing covariates? #41

Open annilk opened 5 months ago

annilk commented 5 months ago

Hi, I wonder how to run snpnet without penalizing covariates?

I can see here that in snpnet(), argument p.factor can be used to control penalization and there it says that by default it is 1 for all variables. Does that mean that by default, all variables, including covariates, are penalized? Which values I should provide there to leave the covariates unpenalized, and penalize only the SNPs?