Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# Create separate data frames for males and females with a suffix males < - cef _ fvm % > % filter ( gender =
# Create separate data frames for males and females with a suffix
males ceffvm
filtergender "male"
renameearningsmale earnings
selectearnings
females ceffvm
filtergender "female"
renameearningsfemale earnings
selectearnings
# Join male & female data frames on 'age' & calc. the ratio
dfratio innerjoinmales females, by "age"
mutateratio earningsmale earningsfemale
# Display the table you created
dfratio
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started