| simBin | R Documentation |
Simulates a binary data matrix from a logistic biplot latent variable model with known parameters, useful for benchmarking and cross-validation studies.
simBin(n, p, k, D, C = 1)
n |
Number of rows (individuals). |
p |
Number of columns (variables). |
k |
Number of underlying latent dimensions. |
D |
Sparsity control: the marginal probability of a 1 in the population. A value close to 0 or 1 yields a sparse or dense matrix, respectively. |
C |
Variance scaling factor for the row scores. Default is |
A named list with components:
XSimulated binary matrix (n \times p).
PMatrix of true Bernoulli probabilities (n \times p).
ThetaMatrix of true log-odds (natural parameters).
ATrue row-marker matrix (n \times k).
BTrue column-marker matrix (p \times k), orthonormal.
muTrue intercept vector of length p.
DObserved proportion of ones in X.
nNumber of rows.
pNumber of columns.
Giovany Babativa <jgbabativam@unal.edu.co>
cv_LogBip
x <- simBin(n = 100, p = 50, k = 3, D = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.