View source: R/PLNfamily-S3methods.R
getBestModel.PLNPCAfamily | R Documentation |
Best model extraction from a collection of models
## S3 method for class 'PLNPCAfamily'
getBestModel(Robject, crit = c("ICL", "BIC"), ...)
getBestModel(Robject, crit, ...)
## S3 method for class 'PLNmixturefamily'
getBestModel(Robject, crit = c("ICL", "BIC"), ...)
## S3 method for class 'Networkfamily'
getBestModel(Robject, crit = c("BIC", "EBIC", "StARS"), ...)
## S3 method for class 'PLNnetworkfamily'
getBestModel(Robject, crit = c("BIC", "EBIC", "StARS"), ...)
## S3 method for class 'ZIPLNnetworkfamily'
getBestModel(Robject, crit = c("BIC", "EBIC", "StARS"), ...)
Robject |
an object with class PLNPCAfamilly ot PLNnetworkfamily |
crit |
a character for the criterion used to performed the selection. Either
"BIC", "ICL", "EBIC", "StARS", "R_squared". Default is |
... |
additional parameters for StARS criterion (only for |
Send back an object with class PLNPCAfit
or PLNnetworkfit
getBestModel(PLNPCAfamily)
: Model extraction for PLNPCAfamily
getBestModel(PLNmixturefamily)
: Model extraction for PLNmixturefamily
getBestModel(Networkfamily)
: Model extraction for PLNnetworkfamily
or ZIPLNnetworkfamily
getBestModel(PLNnetworkfamily)
: Model extraction for PLNnetworkfamily
getBestModel(ZIPLNnetworkfamily)
: Model extraction for ZIPLNnetworkfamily
## Not run:
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
myPCA <- PLNPCA(Abundance ~ 1 + offset(log(Offset)), data = trichoptera, ranks = 1:4)
myModel <- getBestModel(myPCA)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.