Learn R Programming

betaselectr (version 0.1.3)

data_test_mod_cat_binary: Test Dataset with a Binary Outcome Variable

Description

This dataset has one predictor, one moderator, one control variable, one binary dependent variable, and a categorical variable.

Usage

data_test_mod_cat_binary

Arguments

Format

A data frame with 300 rows and five variables:

dv

Dependent variable, binary: 0, 1

iv

Independent variable, continuous

mod

Moderator, continuous

cov1

Control variable, continuous

cat1

String variable with these values: "gp1", "gp2", and "gp3"

Examples

Run this code

glm_out <- glm(dv ~ iv * mod + cov1 + cat1, data_test_mod_cat_binary, family = binomial())
summary(glm_out)


Run the code above in your browser using DataLab