Description Usage Arguments Value Examples
Simulation for the ARZIMM model.
1 2 3 4 5 6 7 8 9 10 11 | simMixTime(
baseFdataN2M,
conFdataN2L,
timeN,
interceptM,
betaMM,
gammaLM = NULL,
sigmaM,
biN2M = NULL,
family = "Poisson"
)
|
baseFdataN2M |
a matrix of absolute counts at baseline time |
conFdataN2L |
a matrix of concomitant variables |
timeN |
a vector of the number of time points for each subjects |
interceptM |
a vector of the intercepts of the non-zero autoregression model |
betaMM |
a matrix of network table |
gammaLM |
a matrix of the zero state logit model |
sigmaM |
a vector of the measurement error standard deviation for the non-zero autoregression model |
biN2M |
a vector of the random effects for the non-zero autoregression model |
family |
a character string indicating the distribtuion. default is Poisson |
a list of simulations:
otu.tab |
a data frame of OTU table |
convar |
a data frame of concomitant variables |
subjid |
a vector of subject-time IDs |
df |
the number of non-zero parameter estimates |
zi |
a list of the random effects |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | require(ARZIMM)
data(parameters)
set.seed(1234)
sim.otu.tab=simMixTime(baseFdataN2M=parameters$baseFdataN2M,conFdataN2L=parameters$conFdataN2L,
timeN=parameters$timeN,interceptM=parameters$interceptM,betaMM=parameters$betaMM,
gammaLM=parameters$gammaLM,sigmaM=parameters$sigmaM,biN2M=parameters$biN2M)
fdata=cbind(sim.otu.tab[[1]],sim.otu.tab[[2]],subjid=sim.otu.tab[[3]])
Varname=colnames(sim.otu.tab[[1]])
Conname=colnames(sim.otu.tab[[2]])[-ncol(sim.otu.tab[[2]])]
IDname='subjid'
Tname='time'
#### NOT RUN
# ARZIMMresult=ARZIMM::ARZIMM(phy=NULL,Varname = Varname,Conname = Conname,fdata=fdata,
# IDname = IDname,Tname = Tname)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.