ModelPWR-class {samurais} | R Documentation |
A Reference Class which represents a fitted PWR model.
Description
ModelPWR represents an estimated PWR model.
Fields
param
A ParamPWR object. It contains the estimated values of the parameters.
stat
A StatPWR object. It contains all the statistics associated to the PWR model.
Methods
plot(what = c("regressors", "segmentation"), ...)
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)
pwr <- fitPWRFisher(univtoydataset$x, univtoydataset$y, K = 5, p = 1)
# pwr is a ModelPWR object. It contains some methods such as 'summary' and 'plot'
pwr$summary()
pwr$plot()
# pwr has also two fields, stat and param which are reference classes as well
# Value of the objective function:
pwr$stat$objective
# Parameters of the polynomial regressions:
pwr$param$beta
[Package samurais version 0.1.0 Index]