pred_se {modmarg}R Documentation

Main wrapper function to calculate margins and standard errors

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

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


[Package modmarg version 0.9.6 Index]