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