Question
Provide R codes and comments for Cross validationand Train & test data of Professors Salaries Here's the following codes I have been using ```{r} ibrary(carData)
Provide R codes and comments for Cross validationand Train & test data of Professors Salaries
Here's the following codes I have been using
```{r}
ibrary(carData)
library(MASS)
library(ISLR)
library(car)
library(leaps)
```
```{r}
Salaries1<-Salaries
str(Salaries1)
attach(Salaries1)
```
```{r}
#Summary variables
summary(Salaries1)
#1. Histogram Salaries
summary(Salaries1$salary)
par(mfrow=c(1,2))
hist(salary,col="pink",main="Professors Salary")
boxplot(salary)
```
Assessing Relations Regression
```{r}
#Correlation variables
pairs(Salaries1)
```
# Cross validation
```{r}
```
# Train & test data
```{r}
```
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