Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ALL in R studio Q 1 . Display the contents of the dataframe. # Do not display the dataframe, just its contents. #Q 2 .

ALL in R studio
Q1. Display the contents of the dataframe.
# Do not display the dataframe, just its contents.
#Q2. How many cases were sampled in the dataframe?
#Q3. How many variables are in the dataframe?
#Q4. Display the top and bottom six rows of the dataframe.
#Q5.(Respond with code and short written response)
#a. Which variables are quantitative?
#b. Which variables are categorical?
#Q6. Create a frequency table per the state and employment sectors variables.
#a. State
#b. Employment Sector
#Q7. Create a new variable with categories of the household variable as a factor, and assign levels and labels to its values.
# Decide on the levels and labels according to what you believe to be interpretable and meaningful for analysis.
# (There's no right or wrong answer, just provide your rationale)
#Q8. Filter observations that have missing data on the age variable in a new dataframe.
#Q9. How many observations were dropped, based on missing values in the age variable?
#Q10. Create a histogram of the age variable of the filter_dat dataframe.
#Q11. Draw a random sample of 10 observations from your filter_dat dataframe in a new dataframe.
#Q12. Create a histogram of the age variable from the random sample.
#Q13. What do you notice is different between the random sample and dataset histograms? (Respond with code and short written response)
#Q14. Create a new variable of the income variable, called income3 with 3 levels, and assign levels and labels to its values.
#Q15. Use the aggregate() function to compute the mean and standard deviation of three quantitative variables, by one categorical variable

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions