fitParaIND, fitParaAR1,
fitSemiIND, fitSemiAR1 or lmeNB,
this function computes the probability of observing the response counts as large as those new observations of subject $i$,
$\boldsymbol{y}_{i,new}$
conditional on the subject's previous observations
$\boldsymbol{y}_{i,pre}$ for subject $i$.
That is, this function returns a point estimate and its asymptotic 95% confidence interval (for a parametric model) of the conditional probability for each subject:
$Pr(q(\boldsymbol{Y}_{i,new}) \ge q(\boldsymbol{y}_{i,new})| \boldsymbol{Y}_{i,pre}=\boldsymbol{y}_{i,pre})$.When the semiparametric approach is employed, the standard error and 95% confidence intervals are computed using bootstrap samples. A scalar statistic to summarize the new response counts can be either the total count, $q(\boldsymbol{Y}_{i,new})=\sum_{j=m_i+1}^{n_i} Y_{ij}$, or the maximum, $q(\boldsymbol{Y}_{i,new})=\max{ Y_{ij};j=m_i+1,\cdots,n_i }$.See Zhao et al.(2013), for more details.
index.batch(data, labelnp, ID, Vcode = NULL, olmeNB = NULL, subset = NULL,
qfun = "sum", IPRT = TRUE, i.se = TRUE, MC = FALSE, C = FALSE,i.tol=1E-75)lmeNB.
This dataset does not have to be the same as the one used in the computations of negative binomial mixed effect regression
(fitParaIND, TRUE and pre-measures by FALSE. For examples, suppose there are three subjects of interest.The first subject has a $n_1
lmeNB. The length of ID must be the same as nrow(data).olmeNB is an output of AR(1) models.
See lmeNB.fitParaIND,fitParaAR1,fitSemiIND,fitSemiAR1<qfun="sum",
a scalar statistic to summarize the new response counts is the total count.
If qfun="max",
a scalar statistic to summarize the new response counts is the maximum.i.se=TRUE then the standard errors of the estimator of the conditional probability are returned for the output of
fitParaIND or fitParaAR1olmeNB if the AR(1) model outputs. See CP.ar1.se.lmeNB.
C=TRUE option could make computations of CPI faster for some patients.lmeNB.lmeNB,The internal functions of lmeNB for fitting relevant models:
fitParaIND,
fitParaAR1,
fitSemiIND,
fitSemiAR1,
The subroutines of index.batch:
jCP.ar1,
CP1.ar1,
MCCP.ar1,
CP.ar1.se,
CP.se,
jCP,
The functions to generate simulated datasets:
rNBME.R.
## See the examples in help files of
## fitParaIND, fitAR1IND, fitSemiIND, fitSemiAR1 and rNBME.RRun the code above in your browser using DataLab