The main function to compute the point estimates and 95% credible intervals of the conditional probabilities $ Pr(Y[i,new+]>= y[i,new+]| Y[i,pre]=y[i,pre]) $ for multiple subjects.
lmeNBBayes
,
this function computes the probability of observing the response counts as large as those new observations of subject $i$,
$
y[i,new]
$
conditional on the subject's previous observations
$
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( Y[i,new+] \ge y[i,new] | Y[i,pre]=y[i,pre]) $, where $ Y[i,new+]=\sum[j=m[i]+1]^{n[i]} Y[ij] $.
index.batch.Bayes(data,labelnp,ID,olmeNBB,thin=NULL,printFreq=10^5,unExpIncrease=TRUE)
lmeNBBayes
.
This data
does not have to be the same as the one used in the computations of negative binomial mixed effect regression (lmeNBBayes
).
lmeNBBayes
.
nrow(data)
== length(labelnp)
must be satisfied.
lmeNBBayes
.
nrow(data)
== length(labelnp)
must be satisfied.
lmeNBBayes
.lmeNBBayes
.(olmeNBB$para$B-olmeNBB$para$burnin)/thin
by the number of patients, $N$ (=length(unique(ID))
), matrix, containing the MCMC samples of the conditional probability index for each patient at every selected iteration (after discarding burn-in and thinning).
If some patients have 0 pre-scans or 0 new-scans, then NA
is returned.
4
by $N$ matrix.
The first column contains the posterior estimates of the conditional probability index.
The second column contains the posterior SE.
The third column contains the lower bound of the 95% credible interval.
The fourth column contains the upper bound of the 95% credible interval.
lmeNBBayes
getDIC
dqmix
## See the examples of function lmeNBBayes
Run the code above in your browser using DataLab