snpnet icon indicating copy to clipboard operation
snpnet copied to clipboard

How run snpnet without penalizing covariates?

Open annilk opened this issue 9 months ago • 0 comments

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?

annilk avatar May 09 '24 07:05 annilk