Learn R Programming

SIMPLE.REGRESSION (version 0.1.9)

data_Lorah_Wong_2018: data_Lorah_Wong_2018

Description

Moderated regression data from Lorah and Wong (2018).

Usage

data(data_Lorah_Wong_2018)

Arguments

Examples

Run this code
head(data_Lorah_Wong_2018)
# \donttest{
model_Lorah <- 
MODERATED_REGRESSION(data=data_Lorah_Wong_2018, DV='suicidal',
                     IV='burden', IV_range='tumble',
                     MOD='belong_thwarted', MOD_levels='quantiles',
                     quantiles_IV=c(.1, .9), quantiles_MOD=c(.25, .5, .75),
                     COVARS='depression', center = TRUE, 
                     plot_type = 'regions') 
       
REGIONS_OF_SIGNIFICANCE(model=model_Lorah,  
                        plot_title='Johnson-Neyman Regions of Significance', 
                        Xaxis_label='Thwarted Belongingness', 
                        Yaxis_label='Slopes of Burdensomeness on Suicical Ideation', 
                        legend_label=NULL)        
# }

Run the code above in your browser using DataLab