Programming Homework Help

Judson University Small R Code to Impute Missing Cell Using Mice Library Exercise

 

Do small code to impute missing cells in the csv file attached , first read and use mice library to impute the results should close to ( 1,35,80) please explain the code and also what method should be used , I used this code but I am not getting good imputation results: —

library(“mice”)

data <- read.csv(“C:/Users/…..8rows.csv”)

set.seed(1234)

imp<-mice(data,maxit=3,method =’pmm’,m=10,threshold=2)

imp_data<-complete(imp,5 )

—————————– can I use pmm method or a different method , i want to use stochastic regression. please change the file to csv to be read