carx.formula: A formula interface to the 'carx' method

Description Usage Arguments See Also Examples

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)


Search within the carx package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.