Description Usage Arguments Author(s) See Also Examples
This function plots the functional form of covariate effects in four simulation scenarios.
1 2 |
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. |
Jiacheng Wu
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.