View source: R/PLNfamily-S3methods.R
getModel.PLNPCAfamily | R Documentation |
Model extraction from a collection of models
## S3 method for class 'PLNPCAfamily'
getModel(Robject, var, index = NULL)
getModel(Robject, var, index)
## S3 method for class 'PLNmixturefamily'
getModel(Robject, var, index = NULL)
## S3 method for class 'Networkfamily'
getModel(Robject, var, index = NULL)
## S3 method for class 'PLNnetworkfamily'
getModel(Robject, var, index = NULL)
## S3 method for class 'ZIPLNnetworkfamily'
getModel(Robject, var, index = NULL)
Robject |
an R6 object with class |
var |
value of the parameter ( |
index |
Integer index of the model to be returned. Only the first value is taken into account. |
Sends back an object with class PLNPCAfit
or PLNnetworkfit
.
getModel(PLNPCAfamily)
: Model extraction for PLNPCAfamily
getModel(PLNmixturefamily)
: Model extraction for PLNmixturefamily
getModel(Networkfamily)
: Model extraction for PLNnetworkfamily
or ZIPLNnetworkfamily
getModel(PLNnetworkfamily)
: Model extraction for PLNnetworkfamily
getModel(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:5)
myModel <- getModel(myPCA, 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.