View source: R/PLNLDAfit-S3methods.R

coef.PLNLDAfit | R Documentation |

`PLNLDA()`

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 class 'PLNLDAfit'
coef(object, ...)
```

`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)
coef(myPLNLDA)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.