View source: R/generate_discontinuous_data.R
Simulate nonsmooth data
1 2 | generate_discontinuous_data(n, n_i, k, s_y = 1, s_x = 1, delta_s,
nt = 101)
|
n |
sample size |
n_i |
number of observations per individual |
k |
tuning parameter which controls the distribution of the parameters that determine the surrogate value |
s_y |
error standard deviation for the outcome |
s_x |
error standard deviation for the surrogate |
delta_s |
residual treatment effect, the parameter of interest |
nt |
number of possible observation times for the longitudinal surrogate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.