generate_response_smooth: Generates simulated response for multilevel splines - test...

Description Usage Arguments Format Value Author(s)

View source: R/mlsplines.R

Description

Generates simulated response for multilevel splines – test function #2

Usage

1
2
generate_response_smooth(J, mod, e_sigma = 1, x_sigma = 1, z_sigma = 0.5,
  N_s, N_m = 200)

Arguments

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.

Format

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.

x_list

the length-J list of design matrices. The nrow of each element is between N_s and N_m

y_list

the length-J list of response vectors. The length of each element is between N_s and N_m.

e_list

the length-J list of error vectors. The length of each element is between N_s and N_m.

true_mu

the true mu vector of length J

z

the grid vector of length J

Value

returns a list described above.

Author(s)

YD Hwang yhwang@g.skku.edu and ER Lee erlee@skku.edu


ydhwang/mlsplines documentation built on Oct. 8, 2019, 12:15 p.m.