mfs_glm_string: Return a concise string description of a linear model

Description Usage Arguments Examples

View source: R/mfs_glm_string.R

Description

This function queries a generalized linear model and produces a string to succinctly quantify the results. Useful for annotating plots.

Usage

1
2
mfs_glm_string(model, s.term = "", s.units = "", s.form = "%0.2f",
  p.level = 0.05, do.p = TRUE)

Arguments

model

A generalized linear model, returned from glm()

s.term

Optionally, specify which variable in your model you are reporting. It must match the model contents.

s.units

Optionally, report units as a string, like "mm" or "lbs/in"

s.form

a sprintf string, default "%0.2f", to indicate the format of the numeric output

p.level

If you require a p-threshold other than 0.05, set it here

do.p

If you don't want p-value reported, set this to FALSE

Examples

1
mfs_glm_string(glm(y~x,data=z), p.level=0.01)

mfschmidt/mfs.r.utils documentation built on Nov. 23, 2017, 9:48 p.m.