Hello all,
Let's say I have two variables - weekly hours worked (hourly_work) and hourly wage (hourly_wage).
What I'd like to do is plot the mean hours of work by wage level (basically across all wage levels), with mean hours of work on the y-axis and hourly wage on the axis.
What I'm struggling with is creating a mean variable for each wage level - of course there an infinite number of wage levels and sometimes the mean of a wage level will be a sample of one. But that is not my concern. I can create a mean with a group but not sure how to do it on an individual level.
Thanks
Let's say I have two variables - weekly hours worked (hourly_work) and hourly wage (hourly_wage).
What I'd like to do is plot the mean hours of work by wage level (basically across all wage levels), with mean hours of work on the y-axis and hourly wage on the axis.
What I'm struggling with is creating a mean variable for each wage level - of course there an infinite number of wage levels and sometimes the mean of a wage level will be a sample of one. But that is not my concern. I can create a mean with a group but not sure how to do it on an individual level.
Thanks
Comment