Learn R Programming

PLNmodels (version 1.2.2)

coef.PLNLDAfit: Extracts model coefficients from objects returned by PLNLDA()

Description

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

Usage

# S3 method for PLNLDAfit
coef(object, ...)

Value

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

Arguments

object

an R6 object with class PLNLDAfit

...

additional parameters for S3 compatibility. Not used

Examples

Run this code
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
myPLNLDA <- PLNLDA(Abundance ~ Wind, grouping = Group, data = trichoptera)
coef(myPLNLDA)

Run the code above in your browser using DataLab