simulateDataRegression: Suitable for regression: The function...

Description Usage Arguments Value

View source: R/simulateDataRegression.R

Description

Suitable for regression: The function "simulateDataRegression" simulates correlational data for regression analysis. The function returns a data.frame "df_sim_reg" with five numeric variables: one dependent variable "sickleave" (interval) and four independent variables "gender", "general_health", "stress_at_work", and "var_of_work_ac" (abbr. variety of work activities). By default, the function simulates 85 (n = 85) cases. This simulation is made to resemble a dataset from a psychological study.

Usage

1

Arguments

n

# number of cases to simulate

Value

df_sim_reg = n*5 dimensional data.frame with variables in five colums - sickleave (numeric) - gender (binairy) - general_health (numeric) - stress_at_work (numeric) - var_of_work_ac (numeric)


rjbderooij/blindData_Git documentation built on Dec. 20, 2020, 5:17 a.m.