Question
Question 2 Choose an appropriate model to determine if there is family income (FamilyIncome) difference between families with kids and families without kids? (Note: There
Question 2
Choose an appropriate model to determine if there is family income (FamilyIncome) difference between families with kids and families without kids? (Note: There is currently no column holding data about whether a family has kids. You may want to use the with() function in R to populate a new column to hold the binary answers.)
I am using t.test, but I need help using the with() function, and interpreting results. (Mainly the with() function)
Dataset - https://docs.google.com/spreadsheets/d/1WvWeKxEhBnOAmYW4SeE5imDFN79MEV0srB_gOvC4yBY/edit?usp=sharing
@ Untitled1* * Source on Save Q 7 -[ Run Source # Loading the data WNH ny_data 0, 1, 0) 5 # Model the t. test 6 mode 12 ny_data # Binary results for children in household ny_data$Haskids 0, 1, 0) ># Model the t. test model2 mode 12 Welch Two Sample t-test data: FamilyIncome by Haskids t = -5.7821, df = 21093, p-value = 7. 482e-09 alternative hypothesis: true difference in means between group 0 and group 1 is not equal to 0 95 percent confidence interval: -10412. 235 -5140.124 sample estimates : mean in group 0 mean in group 1 106584.9 11436Step 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