Learn R Programming

languageR (version 1.0)

addMCMCci.fnc: Add MCMC confidence intervals

Description

Adds MCMC confidence intervals to the plot data frames for plotLMER.fnc().

Usage

addMCMCci.fnc(mcmcM, model, m, fun, pred, predname = NA, factor = FALSE)

Arguments

mcmcM
An MCMC matrix as obtained with mcmcsamp() or pvals.fnc()$mcmc
model
A (generalized) linear mixed effects model obtained with lmer()
m
A design matrix constructed by plotLMER.fnc()
fun
A function for transforming the dependent variable
pred
The predictor to be plotted
predname
The name of the predictor
factor
Boolean for whether predictor is factor

Value

  • A data frame with components
  • xvalues for horizontal axis
  • lowerlower bound 95% prediction interval
  • upperupper bound of 95% prediction interval

Details

Not intended for independent use.

See Also

See Also as plotLMER.fnc

Examples

Run this code
Not intended for independent use.

Run the code above in your browser using DataLab