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

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 Mathematics Questions!