tvalue: Extract t-value for writing

Description Usage Arguments Details Value Author(s) Examples

View source: R/functions.R

Description

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

Usage

1

Arguments

x

a object of class glm, lm, or merModLmerTest

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 summary table, or a string, indicating the name of the effect.

Details

Returns the t value with degrees of freedom and p-value. Models can be fromclass 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)
tvalue(mod) #for intercept and b
tvalue(mod,2) #only for b
tvalue(mod,"x") #passing the variable name

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