-
Notifications
You must be signed in to change notification settings - Fork 2
/
code.R
37 lines (25 loc) · 1.08 KB
/
code.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#################################################################################
######## Student comfort Analysis ################
#################################################################################
#: Project By: Shashank G S
#################################################################################
# The data from about 160 people has been collected via Google forms and only the required data has
# been extracted.
df<-read.csv("C:/Users/india/Downloads/survey.csv")
#write the source address of the csv file above
#View(df)
summary(df)
# There is a outlier in dist variable which we can remove by quartile deviation as shown
uv=3*quantile(df$dist_frm_clg,.413)
df$dist_frm_clg[df$dist_frm_clg>uv]<-uv
summary(df)
######################################
# we use library dummies for other indicator variables
install.packages("dummies")
library(dummies)
df<-dummy.data.frame(df)
df<-df[,-7]
summary(df)
multiplemodal<-lm(comfort_rating~.,data = df)
summary(multiplemodal)
abline(multiplemodal)