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

Description Usage Arguments See Also Examples

View source: R/carx_default.R

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)

carx documentation built on May 29, 2017, 6:28 p.m.

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