Learn R Programming

gfilmm (version 2.0.5)

gfilmmPredictive: Generalized fiducial predictive distributions

Description

Simulations of the generalized fiducial predictive distributions.

Usage

gfilmmPredictive(gfi, newdata)

Value

A list with two fields: FPD, a dataframe containing the simulations, and WEIGHT, their weight. This is a gfilmm

object.

Arguments

gfi

a gfilmm object

newdata

dataframe in which to look for variables with which to predict, or NULL if the model is an intercept-only model without random effect

Examples

Run this code
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)

Run the code above in your browser using DataLab