Description Usage Arguments Format Value Author(s)
Generates simulated response for multilevel splines – test function #2
1 2 | generate_response_smooth(J, mod, e_sigma = 1, x_sigma = 1, z_sigma = 0.5,
N_s, N_m = 200)
|
J |
number of 'data' intervals |
mod |
underlying model; either 'lm' or 'glm' |
e_sigma |
error variance - around the mean function; data level. |
x_sigma |
design matrix sigma |
z_sigma |
error variance around my surface; structural level. |
N_s |
the minimum sample size for each interval. |
N_m |
the maximum sample size for each interval; default = 200. |
list(x_list = x_list, y_list = y_list, e_list = e_list, true_mu = mu, z = z)
This function is supposed to be combined with the other generation function.. but later.
the length-J list of design matrices. The nrow of each element is between N_s and N_m
the length-J list of response vectors. The length of each element is between N_s and N_m.
the length-J list of error vectors. The length of each element is between N_s and N_m.
the true mu vector of length J
the grid vector of length J
returns a list described above.
YD Hwang yhwang@g.skku.edu and ER Lee erlee@skku.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.