plot.sim_dat {tfCox} | R Documentation |
Plot the true covariate effects
Description
This function plots the functional form of covariate effects in four simulation scenarios.
Usage
## 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 |
... |
additional arguments to be passed. These are ignored in this function. |
Author(s)
Jiacheng Wu
See Also
Examples
#generate data
set.seed(123)
dat = sim_dat(n=100, zerof=0, scenario=1)
#plot X versus the true theta
plot.sim_dat(dat)
[Package tfCox version 0.1.0 Index]