A formula interface to the carx method

Share:

Description

This interface will use the supplied formula and data provided by data and other arguments in ... to invoke the carx.default method. This is the preferred way of calling the carx.default function. The data and censoring information are best passed to the function via a cenTS object comprising y, x, ci, lcl, and ucl.

Usage

1
2
## S3 method for class 'formula'
carx(formula, data = list(), ...)

Arguments

formula

the formula.

data

the data consisting of the y, x, lcl,ci, and ucl objects; can be a list, data.frame, or a cenTS object.

...

other arguments supplied to carx.default.

See Also

cenTS on how to construct a cenTS object.

Examples

1
2
dat = carxSim(nObs=100,seed=0)
mdl <- carx(y~X1+X2-1,data=dat, p=2, CI.compute = FALSE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.