gfilmmPredictive | R Documentation |
Simulations of the generalized fiducial predictive distributions.
gfilmmPredictive(gfi, newdata)
gfi |
a |
newdata |
dataframe in which to look for variables with which to
predict, or |
A list with two fields: FPD
, a dataframe containing the
simulations, and WEIGHT
, their weight. This is a gfilmm
object.
Actually the levels of the random effects given in newdata
can
be different from the original levels. For instance, in the example
provided below, we enter block = c("4","6")
, but we could also
enter block = c("A","B")
, even though "A"
and "B"
are not some levels of the block
factor. Both options only mean
that the two observations to predict are in two different blocks.
gfi <- gfilmm( ~ cbind(yield-0.1, yield+0.1), ~ N, ~ block, npk, 2000, nthreads = 2 ) fpd <- gfilmmPredictive(gfi, data.frame(N = c("0","1"), block = c("4","6"))) gfiSummary(fpd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.