Skip to contents

A function to calculate the effect of an intervention given the parameter estimates and intervention levels

Usage

calculate_effect(intervention_levels, variables, param_estimates)

Arguments

intervention_levels

A numeric vector indicating the levels of intervention for each predictor variable.

variables

A list of the names of the response variable and predictor variables extracted from the model.

param_estimates

A vector of parameter estimates from the model.

Value

A numeric value representing the calculated effect of the specified intervention.