pred_se: Main wrapper function to calculate margins and standard...

Description Usage Arguments

View source: R/pred_se.R

Description

For one set of transformed covariates (not including the variable of interest), calculate the predicted level and standard error for the variable of interest.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
pred_se(
  df_levels,
  model,
  type,
  base_rn,
  vcov_mat,
  weights,
  deriv_func,
  link_func
)

Arguments

df_levels

data.frame, already transformed for variables not related to the variable of interest

model

model object

type

either effects or levels

base_rn

numeric, row number of the base level

vcov_mat

matrix, variance-covariance matrix

weights

vector of weights, or NULL

deriv_func

function for the derivative of the predicted outcomes

link_func

function to transform output of 'predict' method into response scale


modmarg documentation built on Nov. 23, 2020, 1:07 a.m.