format_out {eesim}R Documentation

Format output for custom model to use in eesim

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

format_out(mod)

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

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


[Package eesim version 0.1.0 Index]