View source: R/04_simulation.R
simulate_DTM | R Documentation |
Wrapper function for the Rcpp code to simulate DTM data Taken from Wadsworth (2017)
simulate_DTM( subject_sim = 100, tree = NULL, num_leaf = 10, covariates_sim = 50, rho = NULL, Sigma = NULL, X = X, zeta_sim = zeta, rep = rep, num_branch = 3, num_cov = 5, phi_min = 0.9, phi_max = 1.2, seed = 555 )
subject_sim |
|
tree |
|
num_leaf |
|
covariates_sim |
|
rho |
|
Sigma |
|
num_branch |
|
num_cov |
|
seed |
|
A list of results:
Y: the compositional counts
X: the covariates design matrix
phi_sim: true regression coefficients
zeta_sim: true inclusion indicators
tree: the random tree, phylo
object generated by the ape
package
Sigma: the simulated covariance matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.