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

extractPvalues

Extract p-values from a model object


Description

Extract p-values from a model object. Currently works with lm, glm, lme4, glmer, and survreg model objects. If possible, uses the p-values reported in summary(model_fit). If those do not exist (I'm looking at you, lme4), returns the Wald p-value: 2*pnorm(-abs(estimate / se))

Usage

extractPvalues(model_fit)

Arguments

model_fit

The model object from which to extract.

Value

Returns a vector of p-values. If model_fit is not a supported model type, returns NULL.


skpr

Design of Experiments Suite: Generate and Evaluate Optimal Designs

v0.66.5
GPL-3
Authors
Tyler Morgan-Wall [aut, cre], George Khoury [aut]
Initial release

We don't support your browser anymore

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