format_out: Format output for custom model to use in eesim

Description Usage Arguments Value Examples

View source: R/customizable_functions.R

Description

Formats the output within a modeling function to be used in a call to eesim when the model is fit using glm or something similar.

Usage

1

Arguments

mod

A model object from lm, glm, etc.

Value

Output with the correct values and column names needed for a modeling function to pass to eesim.

Examples

1
2
3
dat <- data.frame(x=rnorm(1000, 0, 1), outcome = rnorm(1000, 5, 1))
lin_mod <- lm(outcome~x, data=dat)
format_out(lin_mod)

eesim documentation built on May 2, 2019, 7:30 a.m.