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, ...)

Arguments

object

an R6 object with class PLNLDAfit

...

additional parameters for S3 compatibility. Not used

Value

Either NULL or a matrix of coefficients extracted from the PLNLDAfit model.

Examples

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.10727624
#> Hyc  1.49295417
#> Hym  0.06437849
#> Hys -0.36962104
#> Psy  0.31211436
#> Aga  0.21380986
#> Glo  0.12560564
#> Ath  0.05289017
#> Cea  0.57816435
#> Ced  0.12179703
#> Set  0.36977895
#> All  0.08781796
#> Han  0.15382219
#> Hfo  0.32080341
#> Hsp  0.28965241
#> Hve  0.13949941
#> Sta  0.24079702