Pt_model: Power-time modelling.

Description Usage Arguments Value References See Also Examples

Description

Model the Power-time (Pt) relationship for a set of data. This is done via nonlinear least squares regression of four models: an inverse model; an exponential model; a bivariate power function model; and a three parameter inverse model. An S3 object of class "Ptmodels" is returned, which currently has methods for print, coef, summary, and predict. If inputs do not conform well to the models, a warning message is generated. This function will make use of minpack.lm::nlsLM if available.

Usage

1
Pt_model(P, tsec)

Arguments

P

a numeric vector of maximal mean power values for time periods given in the tsec argument.

tsec

a numeric vector of time values that (positionally) correspond to elements in P.

Value

returns an S3 object of class "Ptmodels".

References

R. Hugh Morton (1996) A 3-parameter critical power model, Ergonomics, 39:4, 611-619, DOI.

See Also

predict.Ptmodels

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(Pt_prof)  # Example power-time profile.

P    <- Pt_prof$pwr
tsec <- Pt_prof$time

mdls <- Pt_model(P, tsec)  # Model.
print(mdls)

coef(mdls)
summary(mdls)

cycleRtools documentation built on May 2, 2019, 10:51 a.m.