generate_multilevel_data: Functions used to generate data in the various scenarios in...

Description Usage Arguments Value

View source: R/functions.R

Description

Functions used to generate data in the various scenarios in accompanying paper

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
generate_multilevel_data(
  scenario = 1,
  grid = seq(from = 0, to = 1, length.out = 48),
  N,
  p = rep(0.5, 2),
  J = 7,
  sigma = 0,
  binary = T,
  Ys = rbinom(N, 1, 0.5),
  return_scores_too = F
)

Arguments

scenario

Which scenario to generate data for: 1=A, 2=B, 3=C In paper

grid

which set of points within [0,1] will data be observed on

N

Total number of subjects to generate data for

p

vector showing distribution of the two groups

J

number of realizations

sigma

variance in the latent curves

binary

Reports whether to return binary or latent curves

Ys

Groups of the individuals

return_scores_too

T/F values to determine whether to return score coefficients too

Value

: Binary or latent curves


acweisha/gFPCAClassif documentation built on Dec. 18, 2021, 10:23 p.m.