report_lm: Report method for linear regression models

Description Usage Arguments Examples

View source: R/report_lm.r

Description

Function to report a regression in APA style.

Usage

1
2
report_lm(identifier, group = NULL, term = NULL, term_nr = NULL,
  results = getOption("tidystats_list"))

Arguments

identifier

A character string identifying the model.

group

A character string indicating the group containing the statistics you want to report.

term

A character string indicating the term you want to report.

term_nr

A number indicating the term you want to report.

results

A tidystats list.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Read in a list of results
results <- read_stats(system.file("results.csv", package = "tidystats"))

# Set the default results list
options(tidystats_list = results)

# Report results
report("lm_simple", term = "conditionmortality salience")
report("lm_simple", term_nr = 2)
report("lm_simple", group = "model")

WillemSleegers/tidystats-v0.3 documentation built on Aug. 12, 2019, 5:31 p.m.