initialize_example: Initialize Scenario

Description Usage Arguments Value See Also Examples

Description

Create a scenario to run the evaluation functions.

Usage

1
2
initialize_example(n.i = 5, n = 30, q = 4, total.beta = 9,
  true.beta = c(1, 1, 1), seed = NULL)

Arguments

n.i

integer, Observations per subject, Default: 5

n

integer, Number of subjects, Default: 30

q

integer, Number of random effects, Default: 4

total.beta

integer, Number of simulated fixed effects, Default: 9

true.beta

numeric, True of fixed effects indicies, Default: c(1,1,1)

seed

integer, set a seed for reproducibility, Default: NULL

Value

(n.i*n) x (1+total.beta+q) matrix containing where the subjects index are the matrix rownames

Description Parameter Dimension
Response y (n.i*n) x 1
Fixed X (n.i*n) x total.beta
Random Z (n.i*n) x q

See Also

rmvnorm

Examples

1
2
3
 initialize_example(n.i = 5,n = 30,q=4,seed=1)
 initialize_example(n.i = 10,n = 60,q=4,seed=1)
 initialize_example(n.i = 5,n = 60,q=10,seed=1)

yonicd/lmmen documentation built on May 9, 2019, 2:29 p.m.