better_sim.lm: Generate simulated predictions from a linear model that...

Description Usage Arguments Value

View source: R/utils.R

Description

Generate simulated predictions from a linear model that account for model and parameter error

Usage

1
better_sim.lm(object, nsim, newdata, resid_error = FALSE)

Arguments

object

an object of class lm or glm

nsim

number of simulations per observation to generate

newdata

dataframe containing the observations to generate predictions for

resid_error

should the model residual error be added to predictions, default is FALSE

Value

a matrix of predictions nrow(newdata) x nsim columns


OpenSDP/OpenSDPsynthR documentation built on June 20, 2020, 6:18 a.m.