| PLNmixturefamily | R Documentation |
The function PLNmixture() produces an instance of this class.
This class comes with a set of methods, some of them being useful for the user:
See the documentation for getBestModel(), getModel() and plot().
PLNmodels::PLNfamily -> PLNmixturefamily
clustersvector indicating the number of clusters considered is the successively fitted models
new()helper function for forward smoothing: split a group
Initialize all models in the collection.
PLNmixturefamily$new( clusters, responses, covariates, offsets, formula, control )
clustersthe dimensions of the successively fitted models
responsesthe matrix of responses common to every models
covariatesthe matrix of covariates common to every models
offsetsthe matrix of offsets common to every models
formulamodel formula used for fitting, extracted from the formula in the upper-level call
controla list for controlling the optimization. See details.
controla list for controlling the optimization. See details.
optimize()Call to the optimizer on all models of the collection
PLNmixturefamily$optimize(config)
configa list for controlling the optimization
smooth()function to restart clustering to avoid local minima by smoothing the loglikelihood values as a function of the number of clusters
PLNmixturefamily$smooth(control)
controla list to control the smoothing process
plot()Lineplot of selected criteria for all models in the collection
PLNmixturefamily$plot(criteria = c("loglik", "BIC", "ICL"), reverse = FALSE)criteriaA valid model selection criteria for the collection of models. Any of "loglik", "BIC" or "ICL" (all).
reverseA logical indicating whether to plot the value of the criteria in the "natural" direction (loglik - 0.5 penalty) or in the "reverse" direction (-2 loglik + penalty). Default to FALSE, i.e use the natural direction, on the same scale as the log-likelihood..
A ggplot2::ggplot object
plot_objective()Plot objective value of the optimization problem along the penalty path
PLNmixturefamily$plot_objective()
a ggplot2::ggplot graph
getBestModel()Extract best model in the collection
PLNmixturefamily$getBestModel(crit = c("BIC", "ICL", "loglik"))crita character for the criterion used to performed the selection. Either
"BIC", "ICL" or "loglik". Default is ICL
a PLNmixturefit object
show()User friendly print method
PLNmixturefamily$show()
print()User friendly print method
PLNmixturefamily$print()
clone()The objects of this class are cloneable with this method.
PLNmixturefamily$clone(deep = FALSE)
deepWhether to make a deep clone.
The function PLNmixture, the class PLNmixturefit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.