View source: R/PLNfitS3methods.R
coef.PLNfit  R Documentation 
Extracts model coefficients from objects returned by PLN()
and its variants
## S3 method for class 'PLNfit'
coef(object, type = c("main", "covariance"), ...)
object 
an R6 object with class 
type 
type of parameter that should be extracted. Either "main" (default) for
or "covariance" for

... 
additional parameters for S3 compatibility. Not used 
A matrix of coefficients extracted from the PLNfit model.
sigma.PLNfit()
, vcov.PLNfit()
, standard_error.PLNfit()
data(trichoptera)
trichoptera < prepare_data(trichoptera$Abundance, trichoptera$Covariate)
myPLN < PLN(Abundance ~ 1 + offset(log(Offset)), data = trichoptera)
coef(myPLN) ## B
coef(myPLN, type = "covariance") ## Sigma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.