simple_slope: Get the Simple Slope for the Moderator at a Given Value

Description Usage Arguments Value

View source: R/simple_slope.R

Description

The 'model1' function will return simple slopes at -1 SD, M, and +1 SD of a continuous moderator, or at the two levels of a dichotomous moderator. If you want some other value, you can use this function, where you specify your own value at the moderator that you want to see the simple slope at.

Usage

1
simple_slope(iv, dv, mod, value, data)

Arguments

iv

The name of the independent variable, as a character string.

dv

The name of the dependent variable, as a character string.

mod

The name of the moderator, as a character string.

value

The numeric value that you want to see the simple slope at.

data

The data frame with the relevant variables.

Value

The coefficient, standard error, t-statistic, and p-value of the simple slope.


markhwhiteii/processr documentation built on Dec. 7, 2020, 11:25 p.m.