── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(semPlot)library(lavaan)
This is lavaan 0.6-19
lavaan is FREE software! Please report any bugs.
library(psych)
Attaching package: 'psych'
The following object is masked from 'package:lavaan':
cor2cov
The following objects are masked from 'package:ggplot2':
%+%, alpha
How work–family conflict related to health outcomes: control multiples variables
What are the main outcome/dependent variables of interest needed for this project?
The main dependent variables of interest needed for this project are 1) “wkvsfam”, The frequency for the demands of your job interfere with family life. 2) “famvswk”, The frequency for for the demands of family life interfere with your job.
What are the main explanatory/independent variables of interest needed to answer your research question?
The independent variables include: 1) “health”, Would you say your own health, in general, is excellent, good, fair, or poor? 2) “mntlhlth”, Now thinking about your mental health, which includes stress, depression, and problems with emotions, for how many days during the past 30 days was your mental health not good?
Write out at least 1 initial hypothesis on how you think an independent variable might influence a dependent variable.
The job interfere with family life will have positive relationship with poor health condition. 2)The family life interfere with job will have positive relationship with poor mental health condition.
Write out control variables that you might use.
The control variables I might use are include 1) respondents’ working status, 2) Respondents’ working hours, 3) respondents’ partner working status, 4) respondents’ partner working hours, 5) Respondents’ marriage status,6) number for children under 18 respndents have, 7) respondents’ age, 8) respondents’ education level, 9) respondents’ family income, 10) respondents’ income, 11) respondents’ race, 12) respondents’ sex, and 13) respondents weight.
I chose these variables based on the articles related to the topic. Here is the frequency table about the control variables appeared in the eight articles.
Variables Name
Notes
Frequency Number
age
8
gender
5
education
5
Marital status
5
Working hours
5
race
3
number of children living at home
3
family income (income)
2
income
2
body mass (wight)
2
Parental status
1 = child(ren) livingat home and 2 = no children at home
2
living arrangement
Live with spouse, and others
2
family history of heart disease
1
heavy drinking
1
Socioeconomic Index for Occupations
1
Location
1
presence of a long term disease
1
Work schedule
1
work environment
1
psychological job demands
1
decision latitude
1
social support at work
1
Emotional demands
1
changing domestic roles
1
changing work characteristics
1
job category
1
Shift work
1
Socioeconomic position
1
height
1
Next Step
combine some control variables. According to the correlations, it seems that variables like family income and income, working hours and working status are measuring same concept. It might worth to consider to combine some variables to make the analysis more concise.
Might try some regression model, like ordinal regression, and report the results, like odd ratio, with table.