Learn R Programming

languageR (version 1.5.0)

pvals.fnc: Compute p-values and MCMC confidence intervals for mixed models

Description

This function used to calculate p-values and HPD intervals for the parameters of models fitted with lmer.

As MCMC is no longer supported by lme4, this function is now obsolete and does no longer produce any output, other than a warning.

See the lme4 function pvalues() for alternatives.

Usage

pvals.fnc(object, ...)

Arguments

object

a LMM or GLMM model object of class lmerMod

...

Optional arguments that can be passed down.

Value

A warning.

See Also

pvalues

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
  data(primingHeid) 
  library(lme4)

  # remove extreme outliers
  primingHeid = primingHeid[primingHeid$RT < 7.1,]

  # fit mixed-effects model

  # we will stay as close to the older optimizer of lme4 as possible -
  # this requires the optimx package and using the control option of lmer()

  require(optimx)
  require(lmerTest)

  primingHeid.lmer = lmer(RT ~ RTtoPrime * ResponseToPrime + 
    Condition + (1|Subject) + (1|Word), data = primingHeid,
    control=lmerControl(optimizer="optimx",optCtrl=list(method="nlminb")))
  summary(primingHeid.lmer)
  anova(primingHeid.lmer)
  
# }

Run the code above in your browser using DataLab