| ModelNMoE-class {meteorits} | R Documentation |
A Reference Class which represents a fitted NMoE model.
Description
ModelNMoE represents an estimated NMoE model.
Fields
paramA ParamNMoE object. It contains the estimated values of the parameters.
statA StatNMoE object. It contains all the statistics associated to the NMoE model.
Methods
plot(what = c("meancurve", "confregions", "clusters", "loglikelihood"), ...)Plot method.
whatThe type of graph requested:
-
"meancurve" =Estimated mean and estimated experts means given the inputX(fieldsEyandEy_kof class StatNMoE). -
"confregions" =Estimated mean and confidence regions. Confidence regions are computed as plus and minus twice the estimated standard deviation (the squarre root of the fieldVaryof class StatNMoE). -
"clusters" =Estimated experts means (fieldEy_k) and hard partition (fieldklasof class StatNMoE). -
"loglikelihood" =Value of the log-likelihood for each iteration (fieldstored_loglikof class StatNMoE).
-
...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(tempanomalies)
x <- tempanomalies$Year
y <- tempanomalies$AnnualAnomaly
nmoe <- emNMoE(X = x, Y = y, K = 2, p = 1, verbose = TRUE)
# nmoe is a ModelNMoE object. It contains some methods such as 'summary' and 'plot'
nmoe$summary()
nmoe$plot()
# nmoe has also two fields, stat and param which are reference classes as well
# Log-likelihood:
nmoe$stat$loglik
# Parameters of the polynomial regressions:
nmoe$param$beta