PLNLDA()
R/PLNLDAfit-S3methods.R
coef.PLNLDAfit.Rd
The method for objects returned by PLNLDA()
only returns
coefficients associated to the $$\Theta$$ part of the model (see the PLNLDA vignette
for mathematical details).
# S3 method for PLNLDAfit
coef(object, ...)
an R6 object with class PLNLDAfit
additional parameters for S3 compatibility. Not used
Either NULL or a matrix of coefficients extracted from the PLNLDAfit model.
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
myPLNLDA <- PLNLDA(Abundance ~ Wind, grouping = Group, data = trichoptera)
#>
#> Performing discriminant Analysis...
#> DONE!
coef(myPLNLDA)
#> Wind
#> Che -0.09419063
#> Hyc 1.77807178
#> Hym 0.06836759
#> Hys -0.37389901
#> Psy 0.35241565
#> Aga 0.25798604
#> Glo 0.14057205
#> Ath 0.05981625
#> Cea 0.58174319
#> Ced 0.13875812
#> Set 0.39581262
#> All 0.12005334
#> Han 0.17080269
#> Hfo 0.38982411
#> Hsp 0.32359499
#> Hve 0.17016418
#> Sta 0.27157201