report_b: Generate an in-text report of regression coeffiecients

Description Usage Arguments Value Examples

Description

Generate an in-text report of regression coeffiecients

Usage

1
2
report_b(coefficient = NULL, format = "rmarkdown", inline = T,
  standardize = F)

Arguments

coefficient

object containing regression coefficient to report

format

How should the output be formatted? Available options are: "plain", "latex", "rmarkdown"

inline

Should non-plain results be formatted for inline (TRUE) or for copy-pasting (FALSE)? (default is TRUE)

standardize

is the coefficient undstandardized [F] or standardized [T]

Value

unstandardized or standardized regression coefficient rounded to three decimal places (e.g., b = .123, beta = .123).

Examples

1
2
3
4
5
x <- c(1:25)
y = c(1, 1, 2, 3, 4, 5, 6, 2, 4, 6, 7, 2, 7, 3, 1, 1, 1, 3, 4, 6, 7, 7, 1, 4, 1)
model <- lm(y ~ x)
coef <- summary(model)$coefficients[2, 1]
report_b(coef)

durkeepk/report documentation built on May 8, 2019, 11:55 a.m.