Question: Q 1 a . What are the types of variable ( quantitative / qualitative ) and levels of measurementLinks to an external site. ( nominal

Q1 a. What are the types of variable (quantitative / qualitative) and levels of measurementLinks to an external site. (nominal / ordinal / interval / ratio) for PassengerId and Age?
Q1b. Which variable has the most missing observations? You could have Googled for "Count NA values in R for all columns in a dataframeLinks to an external site." or something like that.
Q2. Impute missing observations for Age, SibSp, and Parch with the column median (ordinal, interval, or ratio), or the column mode. To do so, use something like this: mydata$Age[is.na(mydata$Age)]<- median(mydata$Age, na.rm=TRUE). You can read up on indexing in dataframeLinks to an external site. (i.e. "dataframe_name$variable_name").
Q3. Install the psych package in R: install.packages('pscyh'). Invoke the package using library(psych). Then provide descriptive statistics for Age, SibSp, and Parch (e.g., describe(mydata$Age). Please comment on what you observe from the summary statistics.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!