| draw_Zo | R Documentation |
Draw a continuous distal outcome given true class memberships (scenario "distal")
draw_Zo(X, params)
X |
Integer vector of length n. Latent class (1-indexed). |
params |
List with |
Numeric vector of length n.
X <- draw_classes(100, c(1/3, 1/3, 1/3))
Zo <- draw_Zo(X, bk2018_params$distal_params)
tapply(Zo, X, mean) # should be close to true mu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.