data_test_mod_cat_binary {betaselectr} | R Documentation |
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
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
glm_out <- glm(dv ~ iv * mod + cov1 + cat1, data_test_mod_cat_binary, family = binomial())
summary(glm_out)
[Package betaselectr version 0.1.2 Index]