View source: R/generate.ext.func.R
generate.ext | R Documentation |
Generates an artificial (NxH) external variable matrix.
generate.ext(N,extcate.vec=extcate.vec,unbala.cate=FALSE)
N |
The number of observation. |
extcate.vec |
A vector of length H, each element indicates the number of category for each H external variables. |
unbala.cate |
logical value. If TRUE, the proportion of categories in the external variable is unbalanced. The default is FALSE. |
An (NxH) external variable matrix.
generate.catecls
###data setting
N <- 30 ; extcate.vec=c(2,3)
ext.mat=generate.ext(N,extcate.vec=extcate.vec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.