Answered step by step
Verified Expert Solution
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
Q Display the contents of the dataframe.
# Do not display the dataframe, just its contents.
#Q How many cases were sampled in the dataframe?
#Q How many variables are in the dataframe?
#Q Display the top and bottom six rows of the dataframe.
#QRespond with code and short written response
#a Which variables are quantitative?
#b Which variables are categorical?
#Q Create a frequency table per the state and employment sectors variables.
#a State
#b Employment Sector
#Q 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.
# Theres no right or wrong answer, just provide your rationale
#Q Filter observations that have missing data on the age variable in a new dataframe.
#Q How many observations were dropped, based on missing values in the age variable?
#Q Create a histogram of the age variable of the filterdat dataframe.
#Q Draw a random sample of observations from your filterdat dataframe in a new dataframe.
#Q Create a histogram of the age variable from the random sample.
#Q What do you notice is different between the random sample and dataset histograms? Respond with code and short written response
#Q Create a new variable of the income variable, called income with levels, and assign levels and labels to its values.
#Q 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
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