Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Author(s)

R. H. Baayen

See Also

pvalues

Examples

## 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)
  
## End(Not run)

languageR

Analyzing Linguistic Data: A Practical Introduction to Statistics

v1.5.0
GPL (>= 2)
Authors
R. H. Baayen <harald.baayen@uni-tuebingen.de>, Elnaz Shafaei-Bajestan <elnaz.shafaei-bajestan@uni-tuebingen.de>
Initial release
2019-01-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.