Description Fields Methods See Also Examples
ModelPWR represents an estimated PWR model.
paramA ParamPWR object. It contains the estimated values of the parameters.
statA StatPWR object. It contains all the statistics associated to the PWR model.
plot(what = c("regressors", "segmentation"), ...)Plot method.
whatThe type of graph requested:
"regressors" = Polynomial regression components
(field regressors of class StatPWR).
"segmentation" = Estimated signal
(field mean_function of class StatPWR).
...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.
ParamPWR, StatPWR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.