ModelPWR-class: A Reference Class which represents a fitted PWR model.

Description Fields Methods See Also Examples

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:

  • "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.

digits

The number of significant digits to use when printing.

See Also

ParamPWR, StatPWR

Examples

 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

samurais documentation built on July 28, 2019, 5:02 p.m.