Coef method for "plmm" class
Value
Either a numeric matrix (if model was fit on data stored in memory)
or a sparse matrix (if model was fit on data stored filebacked). Rownames are
feature names, columns are values of lambda
.
Examples
admix_design <- create_design(X = admix$X, y = admix$y)
fit <- plmm(design = admix_design)
coef(fit)[1:10, 41:45]
#> 0.02586 0.02411 0.02249 0.02097 0.01956
#> (Intercept) 6.50458550 6.53962944 6.57080027 6.59746906 6.62130139
#> Snp1 -0.69640800 -0.70705286 -0.71671404 -0.72519450 -0.73344673
#> Snp2 0.12755219 0.13288164 0.13757472 0.14174103 0.14580213
#> Snp3 3.44235797 3.45135332 3.46004369 3.47126149 3.48122632
#> Snp4 0.02681945 0.03589876 0.04449564 0.05283671 0.06070351
#> Snp5 0.20898024 0.23442725 0.25670947 0.27670485 0.29547753
#> Snp6 -0.07096336 -0.07565843 -0.08011181 -0.08427045 -0.08800835
#> Snp7 0.10236895 0.10942728 0.11619760 0.12233142 0.12815783
#> Snp8 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000
#> Snp9 0.26169664 0.26434601 0.26729738 0.27037993 0.27312787