model1: Model 1 from the PROCESS Macro: Two-Way Interaction

Description Usage Arguments Value

View source: R/model1.R

Description

Performs a simple two-way interaction and returns simple slopes, as per Model 1 from the PROCESS Macro.

Usage

1
model1(iv, dv, mod, 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. If the moderator is numeric with only 0s and 1s, it will return the simple slopes at the values of 0 and 1; if it is numeric otherwise, it will return the simple slopes at a standard deviation below the mean, a standard deviation above the mean, and at the mean.

data

The data frame with the relevant variables.

Value

The coefficients, standard errors, t-statistics, and p-values of the regression coefficients table and the simple slopes.


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