modelRmd: Returns a formatted string for stats reporting from a model...

Description Usage Arguments Value Author(s)

Description

Returns a formatted string to report the B, CI, partial-eta2, t, and p-value for an effect from an lm model. This formatted string is apporpriate for use in an R Markdown document for a dynamic report of research results.

Usage

1
modelRmd(effect, mod, B=1, CI=B, statistic='t', pe=2)

Arguments

effect

Text label for effect in model

mod

object returned from lm() or Anova()

B

number of decimal places for report of B if lm model; NULL if B should not be reported. Ignored for Anova model

CI

number of decimal places for report of Bs in 95 CI; NUll if CI should not be reported. Ignored for Anova model

statistic

test statistic to report: 't' or 'F'. Not currently implemented. t for lm and F for Anova

pe

number of decimal places for report of partial eta2. Null if should not be reported

Value

Returns a formatted string that can be directly included in a R Markdown file for a dynamic report

Author(s)

John J. Curtin jjcurtin@wisc.edu


lmSupport documentation built on May 2, 2019, 2:14 p.m.