Learn R Programming

psre (version 0.1.2)

simple_slopes: Calculate Simple Slopes

Description

Calculates Simple Slopes from an interaction between a categorical and quantitative variable.

Usage

simple_slopes(mod, quant_var, cat_var)

Value

A data frame giving the conditional partial effect along with standard errors, t-statistics and p-values.

Arguments

mod

A model object that contains an interaction between a quantitative variable and a factor.

quant_var

A character string giving the name of the quantitative variable ine the interaction.

cat_var

A character string giving the name of the factor variable ine the interaction.