Description Fields Methods See Also Examples
ModelNMoE represents an estimated NMoE model.
param
A ParamNMoE object. It contains the estimated values of the parameters.
stat
A StatNMoE object. It contains all the statistics associated to the NMoE model.
plot(what = c("meancurve", "confregions", "clusters", "loglikelihood"), ...)
Plot method.
what
The type of graph requested:
"meancurve" =
Estimated mean and estimated
experts means given the input X
(fields Ey
and
Ey_k
of 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 field
Vary
of class StatNMoE).
"clusters" =
Estimated experts means (field
Ey_k
) and hard partition (field klas
of class
StatNMoE).
"loglikelihood" =
Value of the loglikelihood for
each iteration (field stored_loglik
of class
StatNMoE).
...
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.
ParamNMoE, StatNMoE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  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
# Loglikelihood:
nmoe$stat$loglik
# Parameters of the polynomial regressions:
nmoe$param$beta

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.