Description Usage Arguments Value
View source: R/simulateDataRegression.R
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.
1 | simulateDataRegression(n = 85)
|
n |
# number of cases to simulate |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.