fvalue: Extract F-value for writing

Description Usage Arguments Details Value Author(s) Examples

View source: R/functions.R

Description

Extract F-value from glm and lmer model and writes it in APA style

Usage

1

Arguments

x

a object of class glm, lm, or merModLmerTest-class

row

which row of the estimates table should be returned. Default is 2, which means the first effect after the intercept. Row can be numeric, indicating the position of the effect in the ANOVA table, or a string, indicating the name of the effect.

Details

Returns the F value with degrees of freedom and p-value. Models can be from class glm, lm, or merModLmerTest-class

Value

a string

Author(s)

Marcello Gallucci

Examples

1
2
3
4
5
dat<-as.data.frame(cbind(x=rnorm(100,0,1),y=rnorm(100,0,1)))
mod<-lm(y~x,dat)
fvalue(mod) #for intercept and b
fvalue(mod,2) #only for b
fvalue(mod,"x") #passing the variable name

mcfanda/StatWriter documentation built on May 22, 2019, 3:01 p.m.