| ModelMRHLP-class {samurais} | R Documentation |
A Reference Class which represents a fitted MRHLP model.
Description
ModelMRHLP represents an estimated MRHLP model.
Fields
paramA ParamMRHLP object. It contains the estimated values of the parameters.
statA StatMRHLP object. It contains all the statistics associated to the MRHLP model.
Methods
plot(what = c("regressors", "estimatedsignal", "loglikelihood"), ...)Plot method.
whatThe type of graph requested:
...Other graphics parameters.
By default, all the graphs mentioned above are produced.
summary(digits = getOption("digits"))Summary method.
digitsThe number of significant digits to use when printing.
See Also
Examples
data(multivtoydataset)
mrhlp <- emMRHLP(multivtoydataset$x, multivtoydataset[,c("y1", "y2", "y3")],
K = 5, p = 1, verbose = TRUE)
# mrhlp is a ModelMRHLP object. It contains some methods such as 'summary' and 'plot'
mrhlp$summary()
mrhlp$plot()
# mrhlp has also two fields, stat and param which are reference classes as well
# Log-likelihood:
mrhlp$stat$loglik
# Parameters of the polynomial regressions:
mrhlp$param$beta
[Package samurais version 0.1.0 Index]