plot.sim_dat: Plot the true covariate effects

Description Usage Arguments Author(s) See Also Examples

View source: R/Rfunctions.R

Description

This function plots the functional form of covariate effects in four simulation scenarios.

Usage

1
2
## S3 method for class 'sim_dat'
plot(x, which.predictor = NULL, n.plot = 4, ...)

Arguments

x

an object of class "sim_dat"

which.predictor

a vector of predictor index that indicates which predictor function to plot. The vector should have integer values from 1 to p where p is the number of predictors.

n.plot

the number of predictors to be plotted (default is 4). If which.predictor is supplied, this argument is ignored.

...

additional arguments to be passed. These are ignored in this function.

Author(s)

Jiacheng Wu

See Also

sim_dat

Examples

1
2
3
4
5
#generate data
set.seed(123)
dat = sim_dat(n=100, zerof=0, scenario=1)
#plot X versus the true theta
plot.sim_dat(dat)

tfCox documentation built on Aug. 1, 2019, 5:07 p.m.