Question: RStudio Trouble with lines 4 0 - 4 7 Go to file / function Addins YourName - R codes for BA II proje Churn Knit

RStudio
Trouble with lines 40-47
Go to file/function
Addins
YourName-R codes for BA II proje
Churn
Knit on Save
Knit
Run
Outline
Source
Visual
28 mydata$voice_mail_plan[mydata$voice_mail_plan=="yes"]=1
29 mydata$voice_mail_plan-as.factor(mydata$voice_mail_plan)
30=
31
32- ##Delete useless variables (states and area_code, or the first and third variables) first. These variables do not help our analysis.
33-cdots{r}
34 library(dplyr)
35 mydata1-mydata %>% select(-state, -area_code)
36 library(caret)
37+
38
39- ##For missing values, try 3 different imputation strategies (e.g., omission strategy, stochastic regression imputation, and kNN imputation).
40-cdots{r}
41 mydata1_om - na.omit(mydata1)
42
43
mydata1_knn -predict(preProcess_kNN|, newdata = mydata1) #You can just delete the "variable="" part.
44
45 mydata1_stachastic -???
46 mydata1_sr -???
q,
43:38
Chunk 4 :
R Markdown *
Console
Terminal
Background Jobs
R 4.4.1.1
mydata1_knn - predict(preProcess_knn, newdata = mydata1)
#You can just delete the "variable="". par
Error: object 'preProcess_knn' not found mydata1_om - na, omit(mydata1)
mydata1_knn - predict(preProcess_kNN, newdata = mydata1) #You can just delete the "variable="". pai
Error: object 'preProcess_kNN' not found
RStudio Trouble with lines 4 0 - 4 7 Go to file /

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