ModelPWR represents an estimated PWR model.
A ParamPWR object. It contains the estimated values of the parameters.
A StatPWR object. It contains all the statistics associated to the PWR model.
plot(what = c("regressors", "segmentation"), ...)
The type of graph requested:
"regressors" = Polynomial regression components
regressors of class StatPWR).
"segmentation" = Estimated signal
mean_function of class StatPWR).
Other graphics parameters.
By default, all the graphs mentioned above are produced.
summary(digits = getOption("digits"))
The number of significant digits to use when printing.
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.