make_regression_graph: Make a graph of coefficient values and 95 percent confidence...

Description Usage Arguments Value Examples

View source: R/stats.R

Description

Make a graph of coefficient values and 95 percent confidence interval for regression.

Usage

1

Arguments

model

A 'lm' object made from making a model using 'lm()'.

coefficients

A string or vector of strings with the coefficient names. Will then make the graph only with those coefficients.

Value

Outputs a 'ggplot2' graph

Examples

1
2
3
4
make_regression_graph(model = lm(mpg ~ cyl + disp + hp + drat, data = mtcars))
make_regression_graph(model = lm(mpg ~ cyl + disp + hp + drat, data = mtcars),
coefficients = c("cyl", "disp"))
make_regression_graph(model = lm(mpg ~ cyl + disp, data = mtcars))

crimeutils documentation built on Feb. 3, 2021, 5:07 p.m.