Description Fields Methods See Also Examples
ModelRHLP represents an estimated RHLP model.
paramA ParamRHLP object. It contains the estimated values of the parameters.
statA StatRHLP object. It contains all the statistics associated to the RHLP model.
plot(what = c("regressors", "estimatedsignal", "loglikelihood"), ...)Plot method.
whatThe type of graph requested:
"regressors" = Polynomial regression components
(fields polynomials and pi_ik of class
StatRHLP).
"estimatedsignal" = Estimated signal (fields
Ex and klas of class StatRHLP).
"loglikelihood" = Value of the log-likelihood for
each iteration (field stored_loglik of class
StatRHLP).
...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.
ParamRHLP, StatRHLP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(toydataset)
x <- toydataset$x
y <- toydataset$y
rhlp <- emRHLP(X = x, Y = 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.