This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

setwd("~/statistical thinking course/Assignment 3")
studentpor<- read.table("student-por.csv", header=TRUE,sep=";")

#Remove any missing values
na.rm=TRUE
#Obtain names of the variables
names(studentpor)
##  [1] "school"     "sex"        "age"        "address"    "famsize"   
##  [6] "Pstatus"    "Medu"       "Fedu"       "Mjob"       "Fjob"      
## [11] "reason"     "guardian"   "traveltime" "studytime"  "failures"  
## [16] "schoolsup"  "famsup"     "fatherd"    "activities" "nursery"   
## [21] "higher"     "internet"   "romantic"   "famrel"     "freetime"  
## [26] "goout"      "Dalc"       "Walc"       "health"     "absences"  
## [31] "G1"         "G2"         "G3"
#obtain structure of the dataset
str(studentpor)
## 'data.frame':    649 obs. of  33 variables:
##  $ school    : Factor w/ 2 levels "GP","MS": 1 1 1 1 1 1 1 1 1 1 ...
##  $ sex       : Factor w/ 2 levels "F","M": 1 1 1 1 1 2 2 1 2 2 ...
##  $ age       : int  18 17 15 15 16 16 16 17 15 15 ...
##  $ address   : Factor w/ 2 levels "R","U": 2 2 2 2 2 2 2 2 2 2 ...
##  $ famsize   : Factor w/ 2 levels "GT3","LE3": 1 1 2 1 1 2 2 1 2 1 ...
##  $ Pstatus   : Factor w/ 2 levels "A","T": 1 2 2 2 2 2 2 1 1 2 ...
##  $ Medu      : int  4 1 1 4 3 4 2 4 3 3 ...
##  $ Fedu      : int  4 1 1 2 3 3 2 4 2 4 ...
##  $ Mjob      : Factor w/ 5 levels "at_home","health",..: 1 1 1 2 3 4 3 3 4 3 ...
##  $ Fjob      : Factor w/ 5 levels "at_home","health",..: 5 3 3 4 3 3 3 5 3 3 ...
##  $ reason    : Factor w/ 4 levels "course","home",..: 1 1 3 2 2 4 2 2 2 2 ...
##  $ guardian  : Factor w/ 3 levels "father","mother",..: 2 1 2 2 1 2 2 2 2 2 ...
##  $ traveltime: int  2 1 1 1 1 1 1 2 1 1 ...
##  $ studytime : int  2 2 2 3 2 2 2 2 2 2 ...
##  $ failures  : int  0 0 0 0 0 0 0 0 0 0 ...
##  $ schoolsup : Factor w/ 2 levels "no","yes": 2 1 2 1 1 1 1 2 1 1 ...
##  $ famsup    : Factor w/ 2 levels "no","yes": 1 2 1 2 2 2 1 2 2 2 ...
##  $ fatherd   : Factor w/ 2 levels "no","yes": 1 1 1 1 1 1 1 1 1 1 ...
##  $ activities: Factor w/ 2 levels "no","yes": 1 1 1 2 1 2 1 1 1 2 ...
##  $ nursery   : Factor w/ 2 levels "no","yes": 2 1 2 2 2 2 2 2 2 2 ...
##  $ higher    : Factor w/ 2 levels "no","yes": 2 2 2 2 2 2 2 2 2 2 ...
##  $ internet  : Factor w/ 2 levels "no","yes": 1 2 2 2 1 2 2 1 2 2 ...
##  $ romantic  : Factor w/ 2 levels "no","yes": 1 1 1 2 1 1 1 1 1 1 ...
##  $ famrel    : int  4 5 4 3 4 5 4 4 4 5 ...
##  $ freetime  : int  3 3 3 2 3 4 4 1 2 5 ...
##  $ goout     : int  4 3 2 2 2 2 4 4 2 1 ...
##  $ Dalc      : int  1 1 2 1 1 1 1 1 1 1 ...
##  $ Walc      : int  1 1 3 1 2 2 1 1 1 1 ...
##  $ health    : int  3 3 3 5 5 5 3 1 1 5 ...
##  $ absences  : int  4 2 6 0 0 6 0 2 0 0 ...
##  $ G1        : int  0 9 12 14 11 12 13 10 15 12 ...
##  $ G2        : int  11 11 13 14 13 12 12 13 16 12 ...
##  $ G3        : int  11 11 12 14 13 13 13 13 17 13 ...
head(studentpor)
##   school sex age address famsize Pstatus Medu Fedu     Mjob     Fjob
## 1     GP   F  18       U     GT3       A    4    4  at_home  teacher
## 2     GP   F  17       U     GT3       T    1    1  at_home    other
## 3     GP   F  15       U     LE3       T    1    1  at_home    other
## 4     GP   F  15       U     GT3       T    4    2   health services
## 5     GP   F  16       U     GT3       T    3    3    other    other
## 6     GP   M  16       U     LE3       T    4    3 services    other
##       reason guardian traveltime studytime failures schoolsup famsup
## 1     course   mother          2         2        0       yes     no
## 2     course   father          1         2        0        no    yes
## 3      other   mother          1         2        0       yes     no
## 4       home   mother          1         3        0        no    yes
## 5       home   father          1         2        0        no    yes
## 6 reputation   mother          1         2        0        no    yes
##   fatherd activities nursery higher internet romantic famrel freetime
## 1      no         no     yes    yes       no       no      4        3
## 2      no         no      no    yes      yes       no      5        3
## 3      no         no     yes    yes      yes       no      4        3
## 4      no        yes     yes    yes      yes      yes      3        2
## 5      no         no     yes    yes       no       no      4        3
## 6      no        yes     yes    yes      yes       no      5        4
##   goout Dalc Walc health absences G1 G2 G3
## 1     4    1    1      3        4  0 11 11
## 2     3    1    1      3        2  9 11 11
## 3     2    2    3      3        6 12 13 12
## 4     2    1    1      5        0 14 14 14
## 5     2    1    2      5        0 11 13 13
## 6     2    1    2      5        6 12 12 13
#Data exploration
summary(studentpor)
##  school   sex          age        address famsize   Pstatus
##  GP:423   F:383   Min.   :15.00   R:197   GT3:457   A: 80  
##  MS:226   M:266   1st Qu.:16.00   U:452   LE3:192   T:569  
##                   Median :17.00                            
##                   Mean   :16.74                            
##                   3rd Qu.:18.00                            
##                   Max.   :22.00                            
##       Medu            Fedu             Mjob           Fjob    
##  Min.   :0.000   Min.   :0.000   at_home :135   at_home : 42  
##  1st Qu.:2.000   1st Qu.:1.000   health  : 48   health  : 23  
##  Median :2.000   Median :2.000   other   :258   other   :367  
##  Mean   :2.515   Mean   :2.307   services:136   services:181  
##  3rd Qu.:4.000   3rd Qu.:3.000   teacher : 72   teacher : 36  
##  Max.   :4.000   Max.   :4.000                                
##         reason      guardian     traveltime      studytime    
##  course    :285   father:153   Min.   :1.000   Min.   :1.000  
##  home      :149   mother:455   1st Qu.:1.000   1st Qu.:1.000  
##  other     : 72   other : 41   Median :1.000   Median :2.000  
##  reputation:143                Mean   :1.569   Mean   :1.931  
##                                3rd Qu.:2.000   3rd Qu.:2.000  
##                                Max.   :4.000   Max.   :4.000  
##     failures      schoolsup famsup    fatherd   activities nursery  
##  Min.   :0.0000   no :581   no :251   no :610   no :334    no :128  
##  1st Qu.:0.0000   yes: 68   yes:398   yes: 39   yes:315    yes:521  
##  Median :0.0000                                                     
##  Mean   :0.2219                                                     
##  3rd Qu.:0.0000                                                     
##  Max.   :3.0000                                                     
##  higher    internet  romantic      famrel         freetime   
##  no : 69   no :151   no :410   Min.   :1.000   Min.   :1.00  
##  yes:580   yes:498   yes:239   1st Qu.:4.000   1st Qu.:3.00  
##                                Median :4.000   Median :3.00  
##                                Mean   :3.931   Mean   :3.18  
##                                3rd Qu.:5.000   3rd Qu.:4.00  
##                                Max.   :5.000   Max.   :5.00  
##      goout            Dalc            Walc          health     
##  Min.   :1.000   Min.   :1.000   Min.   :1.00   Min.   :1.000  
##  1st Qu.:2.000   1st Qu.:1.000   1st Qu.:1.00   1st Qu.:2.000  
##  Median :3.000   Median :1.000   Median :2.00   Median :4.000  
##  Mean   :3.185   Mean   :1.502   Mean   :2.28   Mean   :3.536  
##  3rd Qu.:4.000   3rd Qu.:2.000   3rd Qu.:3.00   3rd Qu.:5.000  
##  Max.   :5.000   Max.   :5.000   Max.   :5.00   Max.   :5.000  
##     absences            G1             G2              G3       
##  Min.   : 0.000   Min.   : 0.0   Min.   : 0.00   Min.   : 0.00  
##  1st Qu.: 0.000   1st Qu.:10.0   1st Qu.:10.00   1st Qu.:10.00  
##  Median : 2.000   Median :11.0   Median :11.00   Median :12.00  
##  Mean   : 3.659   Mean   :11.4   Mean   :11.57   Mean   :11.91  
##  3rd Qu.: 6.000   3rd Qu.:13.0   3rd Qu.:13.00   3rd Qu.:14.00  
##  Max.   :32.000   Max.   :19.0   Max.   :19.00   Max.   :19.00
#load car to produce a scatterplot
library("car")
## Warning: package 'car' was built under R version 3.1.3
# Generate a scatterplotmatrix on the continuous variables

scatterplotMatrix(studentpor[31:33])

# The diagonal cells show th  histograms of each of the variables,the first two grades and final grade

#There may be a positive relationship between G1 & G2, G1 & G3 and G2 & G3
#Use the plot function to examine the two-variable relationship

plot(studentpor$G1,studentpor$G2)

plot(studentpor$G1, studentpor$G3)

plot(studentpor$G2,studentpor$G3)

#Check the distribution of the dependent variable G3 final grade
hist(studentpor$G3)

# Examine strucure of the databy examining the descriptive statistics and  of the multivariate data
sapply(studentpor[31:33],var)
##        G1        G2        G3 
##  7.536481  8.489290 10.437140
sapply(studentpor[31:33],sd)
##       G1       G2       G3 
## 2.745265 2.913639 3.230656
#The output illustrates that the means, variance and the standard deviation are different
# Calcuate the correlations for the mutlivariate data to calcuate the  correlation coefficientfor each pair of variables

cor.test(studentpor$G1,studentpor$G2)
## 
##  Pearson's product-moment correlation
## 
## data:  studentpor$G1 and studentpor$G2
## t = 43.8455, df = 647, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
##  0.8442202 0.8831514
## sample estimates:
##       cor 
## 0.8649816
cor.test(studentpor$G1,studentpor$G3)
## 
##  Pearson's product-moment correlation
## 
## data:  studentpor$G1 and studentpor$G3
## t = 37.3292, df = 647, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
##  0.8003265 0.8493311
## sample estimates:
##       cor 
## 0.8263871
cor.test(studentpor$G2,studentpor$G3)
## 
##  Pearson's product-moment correlation
## 
## data:  studentpor$G2 and studentpor$G3
## t = 59.104, df = 647, p-value < 2.2e-16
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
##  0.9056064 0.9297806
## sample estimates:
##      cor 
## 0.918548

```

# Need to standardise the variables in order to compare different variables with different means and different variances.

standardisedgrades<- as.data.frame(scale(studentpor[31:33]))

```

# Check that the variables are standardised and exhibit means of 0 and variances of 1 by generating descriptive statistics
sapply(standardisedgrades,mean)
##            G1            G2            G3 
##  2.942242e-16 -3.052555e-17 -2.244161e-17
sapply(standardisedgrades,sd)
## G1 G2 G3 
##  1  1  1
sapply(standardisedgrades,var)
## G1 G2 G3 
##  1  1  1
#Use k means clustering to identify the number of k clusters within the multivariate dataset.
wss <- (nrow(standardisedgrades)-1)*sum(sapply(standardisedgrades,var))
for(i in 2:33) wss[i] <- sum(kmeans(standardisedgrades,centers=i)$withinss)
plot(1:33,wss,type="b",xlab="Number of Clusters", ylab="Within clusters sum of squares")

# Use k-means clustering to determine the clusters in the data
studentgradefit<- kmeans(standardisedgrades,5)
studentgradefit
## K-means clustering with 5 clusters of sizes 58, 112, 193, 47, 239
## 
## Cluster means:
##           G1         G2         G3
## 1 -1.6212640 -1.7342118 -1.9508609
## 2  0.9864502  1.0055784  0.9825706
## 3  0.2736288  0.2097856  0.2472111
## 4  1.8542057  1.8782169  1.6426250
## 5 -0.6544231 -0.5891435 -0.5096782
## 
## Clustering vector:
##   [1] 1 5 3 2 3 3 3 3 4 3 2 3 3 3 2 4 3 2 1 3 3 3 3 5 5 5 3 5 3 3 5 2 2 3 3
##  [36] 5 2 3 3 3 5 5 2 5 5 5 3 4 3 3 3 2 5 3 3 3 2 2 2 2 4 3 3 3 3 2 3 5 5 2
##  [71] 3 5 3 3 5 5 3 3 5 3 3 5 3 3 3 3 3 2 5 5 5 3 3 2 3 3 5 3 3 3 5 4 3 5 4
## [106] 5 5 2 5 2 2 5 5 4 5 2 2 2 3 2 2 3 3 3 3 5 5 5 2 3 5 5 5 3 3 2 5 3 3 2
## [141] 5 3 3 3 3 5 5 2 5 5 5 2 3 3 5 1 3 5 5 3 5 5 3 1 5 3 5 3 1 5 5 5 1 5 5
## [176] 1 5 5 1 1 5 4 3 4 5 4 5 3 2 5 3 5 5 3 5 3 4 2 2 3 5 2 3 5 3 3 5 5 3 2
## [211] 3 5 2 5 2 3 2 3 3 5 3 2 3 3 3 3 3 3 3 2 5 5 3 3 5 3 3 5 2 1 4 5 5 2 3
## [246] 3 3 3 5 3 4 5 3 5 5 1 1 5 2 5 3 3 5 1 5 2 2 2 3 2 2 3 2 5 5 5 2 5 5 1
## [281] 5 3 1 5 1 3 3 5 3 2 5 5 3 3 3 3 4 5 5 3 2 5 5 3 3 5 2 3 5 3 5 3 4 3 4
## [316] 2 2 3 5 3 3 2 5 5 5 5 3 4 3 3 3 3 4 3 2 4 2 4 4 2 2 3 2 4 4 2 3 1 4 4
## [351] 5 2 5 5 3 3 4 2 3 2 3 5 3 3 2 2 3 3 5 5 5 5 3 5 4 2 2 3 4 5 3 2 3 3 5
## [386] 5 2 2 5 5 2 3 3 2 2 3 4 3 3 2 2 2 3 2 2 5 3 5 5 2 2 2 4 5 2 5 4 4 2 5
## [421] 4 5 3 5 3 5 5 4 1 5 5 5 1 2 5 5 1 3 5 2 1 5 3 1 5 5 5 5 4 3 2 5 5 5 5
## [456] 5 2 5 3 5 5 3 2 3 5 5 5 2 3 3 3 3 2 5 5 3 5 5 1 5 5 5 5 5 1 5 5 5 5 5
## [491] 5 1 5 5 5 3 2 5 2 4 1 3 5 2 3 5 5 5 5 4 4 5 1 1 1 5 2 2 1 1 1 5 1 1 1
## [526] 2 2 5 5 5 5 5 1 2 3 5 2 3 5 5 5 5 5 5 3 5 2 5 5 4 3 3 5 3 5 3 5 5 5 3
## [561] 5 5 3 1 5 5 5 1 5 1 1 5 1 5 5 5 5 5 5 5 5 1 1 1 5 1 1 1 5 5 1 3 3 3 4
## [596] 4 4 1 5 3 3 5 3 1 5 1 4 3 5 3 1 2 5 5 3 2 2 4 2 3 2 3 5 2 5 5 1 5 5 1
## [631] 4 5 1 2 4 5 4 1 2 1 1 2 5 5 5 2 5 5 5
## 
## Within cluster sum of squares by cluster:
## [1] 136.07384  31.06787  57.40460  14.28357  90.83135
##  (between_SS / total_SS =  83.0 %)
## 
## Available components:
## 
## [1] "cluster"      "centers"      "totss"        "withinss"    
## [5] "tot.withinss" "betweenss"    "size"         "iter"        
## [9] "ifault"
#Use studentgradefit to obtain the  means of each of the variables  for each cluster
aggregate(standardisedgrades,by=list(studentgradefit$cluster),FUN=mean)
##   Group.1         G1         G2         G3
## 1       1 -1.6212640 -1.7342118 -1.9508609
## 2       2  0.9864502  1.0055784  0.9825706
## 3       3  0.2736288  0.2097856  0.2472111
## 4       4  1.8542057  1.8782169  1.6426250
## 5       5 -0.6544231 -0.5891435 -0.5096782
#Create a new data frame which appends the clusters to the studentpor file
studentporclust1<-data.frame(studentpor, studentgradefit$cluster)
studentporclust1
##     school sex age address famsize Pstatus Medu Fedu     Mjob     Fjob
## 1       GP   F  18       U     GT3       A    4    4  at_home  teacher
## 2       GP   F  17       U     GT3       T    1    1  at_home    other
## 3       GP   F  15       U     LE3       T    1    1  at_home    other
## 4       GP   F  15       U     GT3       T    4    2   health services
## 5       GP   F  16       U     GT3       T    3    3    other    other
## 6       GP   M  16       U     LE3       T    4    3 services    other
## 7       GP   M  16       U     LE3       T    2    2    other    other
## 8       GP   F  17       U     GT3       A    4    4    other  teacher
## 9       GP   M  15       U     LE3       A    3    2 services    other
## 10      GP   M  15       U     GT3       T    3    4    other    other
## 11      GP   F  15       U     GT3       T    4    4  teacher   health
## 12      GP   F  15       U     GT3       T    2    1 services    other
## 13      GP   M  15       U     LE3       T    4    4   health services
## 14      GP   M  15       U     GT3       T    4    3  teacher    other
## 15      GP   M  15       U     GT3       A    2    2    other    other
## 16      GP   F  16       U     GT3       T    4    4   health    other
## 17      GP   F  16       U     GT3       T    4    4 services services
## 18      GP   F  16       U     GT3       T    3    3    other    other
## 19      GP   M  17       U     GT3       T    3    2 services services
## 20      GP   M  16       U     LE3       T    4    3   health    other
## 21      GP   M  15       U     GT3       T    4    3  teacher    other
## 22      GP   M  15       U     GT3       T    4    4   health   health
## 23      GP   M  16       U     LE3       T    4    2  teacher    other
## 24      GP   M  16       U     LE3       T    2    2    other    other
## 25      GP   F  15       R     GT3       T    2    4 services   health
## 26      GP   F  16       U     GT3       T    2    2 services services
## 27      GP   M  15       U     GT3       T    2    2    other    other
## 28      GP   M  15       U     GT3       T    4    2   health services
## 29      GP   M  16       U     LE3       A    3    4 services    other
## 30      GP   M  16       U     GT3       T    4    4  teacher  teacher
## 31      GP   M  15       U     GT3       T    4    4   health services
## 32      GP   M  15       U     GT3       T    4    4 services services
## 33      GP   M  15       R     GT3       T    4    3  teacher  at_home
## 34      GP   M  15       U     LE3       T    3    3    other    other
## 35      GP   M  16       U     GT3       T    3    2    other    other
## 36      GP   F  15       U     GT3       T    2    3    other    other
## 37      GP   M  15       U     LE3       T    4    3  teacher services
## 38      GP   M  16       R     GT3       A    4    4    other  teacher
## 39      GP   F  15       R     GT3       T    3    4 services   health
## 40      GP   F  15       R     GT3       T    2    2  at_home    other
## 41      GP   F  16       U     LE3       T    2    2    other    other
## 42      GP   M  15       U     LE3       T    4    4  teacher    other
## 43      GP   M  15       U     GT3       T    4    4 services  teacher
## 44      GP   M  15       U     GT3       T    2    2 services services
## 45      GP   F  16       U     LE3       T    2    2    other  at_home
## 46      GP   F  15       U     LE3       A    4    3    other    other
## 47      GP   F  16       U     LE3       A    3    3    other services
## 48      GP   M  16       U     GT3       T    4    3   health services
## 49      GP   M  15       U     GT3       T    4    2  teacher    other
## 50      GP   F  15       U     GT3       T    4    4 services  teacher
## 51      GP   F  16       U     LE3       T    2    2 services services
## 52      GP   F  15       U     LE3       T    4    2   health    other
## 53      GP   M  15       U     LE3       A    4    2   health   health
## 54      GP   F  15       U     GT3       T    4    4 services services
## 55      GP   F  15       U     LE3       A    3    3    other    other
## 56      GP   F  16       U     GT3       A    2    1    other    other
## 57      GP   F  15       U     GT3       A    4    3 services services
## 58      GP   M  15       U     GT3       T    4    4  teacher   health
## 59      GP   M  15       U     LE3       T    1    2    other  at_home
## 60      GP   F  16       U     GT3       T    4    2 services    other
## 61      GP   F  16       R     GT3       T    4    4   health  teacher
## 62      GP   F  16       U     GT3       T    1    1 services services
## 63      GP   F  16       U     LE3       T    1    2    other services
## 64      GP   F  16       U     GT3       T    4    3  teacher   health
## 65      GP   F  15       U     LE3       T    4    3 services services
## 66      GP   F  16       U     LE3       T    4    3  teacher services
## 67      GP   M  15       U     GT3       A    4    4    other services
## 68      GP   F  16       U     GT3       T    3    1 services    other
## 69      GP   F  15       R     LE3       T    2    2   health services
## 70      GP   F  15       R     LE3       T    3    1    other    other
## 71      GP   M  16       U     GT3       T    3    1    other    other
## 72      GP   M  15       U     GT3       T    4    2    other    other
## 73      GP   F  15       R     GT3       T    1    1    other    other
## 74      GP   M  16       U     GT3       T    3    1    other    other
## 75      GP   F  16       U     GT3       T    3    3    other services
## 76      GP   M  15       U     GT3       T    4    3  teacher    other
## 77      GP   M  15       U     GT3       T    4    0  teacher    other
## 78      GP   F  16       U     GT3       T    2    2    other    other
## 79      GP   M  17       U     GT3       T    2    1    other    other
## 80      GP   F  16       U     GT3       T    3    4  at_home    other
## 81      GP   M  15       U     GT3       T    2    3    other services
## 82      GP   M  15       U     GT3       T    2    3    other    other
## 83      GP   F  15       U     LE3       T    3    2 services    other
## 84      GP   M  15       U     LE3       T    2    2 services services
## 85      GP   F  15       U     GT3       T    1    1    other    other
## 86      GP   F  15       U     GT3       T    4    4 services services
## 87      GP   F  16       U     LE3       T    2    2  at_home    other
## 88      GP   F  15       U     GT3       T    4    2    other    other
## 89      GP   M  16       U     GT3       T    2    2 services    other
## 90      GP   M  16       U     LE3       A    4    4  teacher   health
## 91      GP   F  16       U     GT3       T    3    3    other    other
## 92      GP   F  15       U     GT3       T    4    3 services    other
## 93      GP   F  16       U     LE3       T    3    1    other    other
## 94      GP   F  16       U     GT3       T    4    2  teacher services
## 95      GP   M  15       U     LE3       T    2    2 services   health
## 96      GP   F  15       R     GT3       T    1    1  at_home    other
## 97      GP   M  16       R     GT3       T    4    3 services    other
## 98      GP   F  16       U     GT3       T    2    1    other    other
## 99      GP   F  16       U     GT3       T    4    4    other    other
## 100     GP   F  16       U     GT3       T    4    3    other  at_home
## 101     GP   M  16       U     GT3       T    4    4 services services
## 102     GP   M  16       U     GT3       T    4    4 services  teacher
## 103     GP   M  15       U     GT3       T    4    4 services    other
## 104     GP   F  15       U     GT3       T    3    2 services    other
## 105     GP   M  15       U     GT3       A    3    4 services    other
## 106     GP   F  15       U     GT3       A    3    3    other   health
## 107     GP   F  15       U     GT3       T    2    2    other    other
## 108     GP   M  16       U     GT3       T    3    3 services    other
## 109     GP   M  15       R     GT3       T    4    4    other    other
## 110     GP   F  16       U     LE3       T    4    4   health   health
## 111     GP   M  15       U     LE3       A    4    4  teacher  teacher
## 112     GP   F  16       R     GT3       T    3    3 services    other
## 113     GP   F  16       U     GT3       T    2    2  at_home    other
## 114     GP   M  15       U     LE3       T    4    2  teacher    other
## 115     GP   M  15       R     GT3       T    2    1   health services
## 116     GP   M  16       U     GT3       T    4    4  teacher  teacher
## 117     GP   M  15       U     GT3       T    4    4    other  teacher
## 118     GP   M  16       U     GT3       T    3    3    other services
## 119     GP   M  17       R     GT3       T    1    3    other    other
## 120     GP   M  15       U     GT3       T    3    4    other    other
## 121     GP   F  15       U     GT3       T    1    2  at_home services
## 122     GP   M  15       U     GT3       T    2    2 services services
## 123     GP   F  16       U     LE3       T    2    4    other   health
## 124     GP   M  16       U     GT3       T    4    4   health    other
## 125     GP   F  16       U     GT3       T    2    2    other    other
## 126     GP   M  15       U     GT3       T    3    4 services services
## 127     GP   F  15       U     LE3       A    3    4    other    other
## 128     GP   F  19       U     GT3       T    0    1  at_home    other
## 129     GP   M  16       R     GT3       T    4    4  teacher  teacher
## 130     GP   M  16       U     GT3       T    2    3    other    other
## 131     GP   F  15       R     GT3       T    3    4 services  teacher
## 132     GP   F  18       U     GT3       T    2    1 services    other
## 133     GP   F  17       U     LE3       A    2    1    other    other
## 134     GP   F  15       U     GT3       T    1    1  at_home    other
## 135     GP   F  17       U     LE3       T    2    2    other    other
## 136     GP   F  16       U     GT3       A    3    4 services    other
## 137     GP   M  16       U     GT3       T    2    1  at_home    other
## 138     GP   F  16       U     GT3       A    2    2    other    other
## 139     GP   M  15       R     GT3       T    3    4  at_home  teacher
## 140     GP   F  15       U     GT3       T    4    4 services  at_home
## 141     GP   M  17       R     GT3       T    3    4  at_home    other
## 142     GP   F  16       R     GT3       T    1    1  at_home    other
## 143     GP   M  18       U     LE3       T    3    1 services services
## 144     GP   F  18       U     GT3       A    3    2    other services
## 145     GP   F  16       R     GT3       T    1    1    other services
## 146     GP   F  16       U     GT3       A    3    3    other    other
## 147     GP   M  16       U     LE3       T    1    1 services    other
## 148     GP   F  15       U     GT3       T    4    4  teacher  teacher
## 149     GP   F  15       R     GT3       T    1    1    other    other
## 150     GP   M  15       U     GT3       T    4    3  teacher services
## 151     GP   F  15       U     GT3       A    3    3 services services
## 152     GP   M  16       U     GT3       T    4    4 services services
## 153     GP   M  16       U     LE3       T    2    2 services services
## 154     GP   F  15       U     GT3       T    4    4  teacher services
## 155     GP   F  16       U     LE3       T    1    1  at_home  at_home
## 156     GP   M  17       U     GT3       T    2    1    other    other
## 157     GP   F  15       U     GT3       T    1    1    other services
## 158     GP   F  15       U     LE3       A    2    1  at_home    other
## 159     GP   F  15       U     GT3       T    3    2   health services
## 160     GP   F  15       U     GT3       T    1    2  at_home    other
## 161     GP   F  15       U     GT3       T    1    2  at_home services
## 162     GP   M  16       U     GT3       T    4    4  teacher  teacher
## 163     GP   M  15       U     LE3       A    2    1 services    other
## 164     GP   M  18       U     LE3       T    1    1    other    other
## 165     GP   M  16       U     LE3       T    2    1  at_home    other
## 166     GP   F  15       R     GT3       T    3    3 services services
## 167     GP   M  19       U     GT3       T    3    2 services  at_home
## 168     GP   F  17       U     GT3       T    4    4    other  teacher
## 169     GP   M  15       R     GT3       T    2    3  at_home services
## 170     GP   M  17       R     LE3       T    1    2    other    other
## 171     GP   F  18       R     GT3       T    1    1  at_home    other
## 172     GP   M  16       R     GT3       T    2    2  at_home    other
## 173     GP   M  16       U     GT3       T    3    3    other services
## 174     GP   M  16       U     LE3       T    1    2   health services
## 175     GP   M  17       R     LE3       T    2    1  at_home    other
## 176     GP   M  17       R     GT3       T    3    2    other    other
## 177     GP   M  15       U     LE3       T    1    2    other    other
## 178     GP   M  16       U     GT3       T    1    3  at_home services
## 179     GP   M  17       R     LE3       T    1    1    other services
## 180     GP   M  17       U     GT3       T    3    2 services services
## 181     GP   M  16       U     GT3       T    2    2    other    other
## 182     GP   F  16       U     GT3       T    4    2   health services
## 183     GP   F  16       U     GT3       T    2    2    other    other
## 184     GP   F  16       U     GT3       T    4    4   health   health
## 185     GP   M  16       U     GT3       T    3    4    other    other
## 186     GP   M  16       U     GT3       T    1    0    other    other
## 187     GP   M  17       U     LE3       T    4    4  teacher    other
## 188     GP   F  16       U     GT3       T    1    3  at_home services
## 189     GP   F  16       U     LE3       T    3    3    other    other
## 190     GP   M  17       U     LE3       T    4    3  teacher    other
## 191     GP   F  16       U     GT3       T    2    2 services    other
## 192     GP   M  17       U     GT3       T    3    3    other    other
## 193     GP   M  16       R     GT3       T    4    2  teacher services
## 194     GP   M  17       U     GT3       T    4    3    other    other
## 195     GP   M  16       U     GT3       T    4    3  teacher    other
## 196     GP   M  16       U     GT3       T    3    3 services    other
## 197     GP   F  17       U     GT3       T    2    4 services services
## 198     GP   F  17       U     LE3       T    3    3    other    other
## 199     GP   F  16       U     GT3       T    3    2    other    other
## 200     GP   M  17       U     GT3       T    3    3 services services
## 201     GP   M  16       U     GT3       T    1    2 services services
## 202     GP   M  16       U     LE3       T    2    1    other    other
## 203     GP   F  17       U     GT3       A    3    3   health    other
## 204     GP   M  17       R     GT3       T    1    2  at_home    other
## 205     GP   F  16       U     GT3       T    2    3 services services
## 206     GP   F  17       U     GT3       T    1    1  at_home services
## 207     GP   M  17       U     GT3       T    1    2  at_home services
## 208     GP   M  16       R     GT3       T    3    3 services services
## 209     GP   M  16       U     GT3       T    2    3    other    other
## 210     GP   F  17       U     LE3       T    2    4 services services
## 211     GP   M  17       U     GT3       T    4    4 services  teacher
## 212     GP   M  16       R     LE3       T    3    3  teacher    other
## 213     GP   F  17       U     GT3       T    4    4 services  teacher
## 214     GP   F  16       U     LE3       T    4    4  teacher  teacher
## 215     GP   F  16       U     GT3       T    4    3   health    other
## 216     GP   F  16       U     GT3       T    2    3    other    other
## 217     GP   F  17       U     GT3       T    1    1    other    other
## 218     GP   F  17       R     GT3       T    2    2    other    other
## 219     GP   F  16       R     GT3       T    2    2 services services
## 220     GP   F  17       U     GT3       T    3    4  at_home services
## 221     GP   F  16       U     GT3       A    3    1 services    other
## 222     GP   F  16       U     GT3       T    4    3  teacher    other
## 223     GP   F  16       U     GT3       T    1    1  at_home    other
## 224     GP   F  17       R     GT3       T    4    3  teacher    other
## 225     GP   F  19       U     GT3       T    3    3    other    other
## 226     GP   M  17       U     LE3       T    4    4 services    other
## 227     GP   F  16       U     GT3       A    2    2    other    other
## 228     GP   M  18       U     GT3       T    2    2 services    other
## 229     GP   F  17       R     LE3       T    4    4 services    other
## 230     GP   F  17       U     LE3       T    3    2    other    other
## 231     GP   F  17       U     GT3       T    4    3    other    other
## 232     GP   M  18       U     LE3       T    3    3 services   health
## 233     GP   F  17       U     GT3       T    2    3  at_home    other
## 234     GP   F  17       U     GT3       T    2    2  at_home  at_home
## 235     GP   F  17       R     GT3       T    2    1  at_home services
## 236     GP   F  17       U     GT3       T    1    1  at_home    other
## 237     GP   F  16       U     GT3       T    2    3 services  teacher
## 238     GP   M  18       U     GT3       T    2    2    other    other
## 239     GP   F  16       U     GT3       T    4    4  teacher services
## 240     GP   F  18       R     GT3       T    3    1    other    other
## 241     GP   F  17       U     GT3       T    3    2    other    other
## 242     GP   M  17       U     LE3       T    2    3 services services
## 243     GP   M  18       U     LE3       T    2    1  at_home    other
## 244     GP   F  17       U     GT3       A    2    1    other    other
## 245     GP   F  17       U     LE3       T    4    3   health    other
## 246     GP   M  17       R     GT3       T    2    2    other    other
## 247     GP   M  17       U     GT3       T    4    4  teacher  teacher
## 248     GP   M  16       U     GT3       T    4    4   health    other
## 249     GP   M  16       U     LE3       T    1    1    other    other
## 250     GP   M  16       U     GT3       T    3    2  at_home    other
## 251     GP   M  17       U     LE3       T    2    2    other    other
## 252     GP   F  16       U     GT3       T    2    1    other    other
## 253     GP   F  16       U     GT3       A    4    1    other    other
## 254     GP   F  18       U     LE3       A    2    4 services    other
## 255     GP   F  18       U     LE3       T    2    2  at_home services
## 256     GP   F  18       U     GT3       T    3    3    other    other
## 257     GP   M  18       U     GT3       T    2    2    other  at_home
## 258     GP   M  17       U     GT3       T    4    4  teacher  teacher
## 259     GP   F  17       U     GT3       T    3    2    other    other
## 260     GP   F  17       U     LE3       T    1    1  at_home  at_home
## 261     GP   F  16       U     GT3       T    1    2    other    other
## 262     GP   F  17       R     GT3       T    2    1  at_home services
## 263     GP   F  17       R     LE3       A    1    4    other    other
## 264     GP   M  18       U     GT3       T    2    2    other services
## 265     GP   F  17       U     LE3       A    2    2    other    other
## 266     GP   F  17       R     LE3       T    1    1  at_home    other
## 267     GP   F  17       U     LE3       A    4    2  teacher    other
## 268     GP   M  17       U     LE3       T    4    3   health    other
## 269     GP   M  17       R     LE3       A    4    4  teacher    other
## 270     GP   M  16       U     LE3       T    4    3  teacher    other
## 271     GP   M  16       U     GT3       T    4    4 services services
## 272     GP   F  17       U     GT3       T    4    4  teacher services
## 273     GP   M  17       R     GT3       T    1    1    other    other
## 274     GP   F  17       U     GT3       T    3    3 services    other
## 275     GP   F  17       U     GT3       T    1    1  at_home    other
## 276     GP   F  18       U     GT3       T    2    1    other    other
## 277     GP   M  16       U     GT3       T    2    1    other    other
## 278     GP   F  17       U     GT3       T    1    1    other services
## 279     GP   M  17       U     GT3       T    2    3    other    other
## 280     GP   M  22       U     GT3       T    3    1 services services
## 281     GP   M  18       R     LE3       T    3    3    other services
## 282     GP   M  16       U     GT3       T    0    2    other    other
## 283     GP   M  18       U     GT3       T    3    2 services    other
## 284     GP   M  16       U     GT3       T    3    3  at_home    other
## 285     GP   M  18       U     GT3       T    2    1 services services
## 286     GP   M  16       R     GT3       T    2    1    other    other
## 287     GP   M  17       R     GT3       T    2    1    other    other
## 288     GP   M  17       U     LE3       T    1    1   health    other
## 289     GP   F  18       U     LE3       A    2    1    other    other
## 290     GP   F  17       U     LE3       T    4    2  teacher services
## 291     GP   F  19       U     GT3       T    2    2 services services
## 292     GP   M  18       U     LE3       T    2    1 services    other
## 293     GP   F  17       R     GT3       T    4    2    other    other
## 294     GP   F  18       U     LE3       T    1    1    other  at_home
## 295     GP   F  18       R     GT3       T    2    2    other    other
## 296     GP   M  19       U     LE3       A    4    3 services  at_home
## 297     GP   M  18       U     GT3       T    2    1    other    other
## 298     GP   M  17       R     GT3       T    2    2    other services
## 299     GP   F  17       U     LE3       T    2    2 services services
## 300     GP   F  20       R     GT3       T    2    1    other    other
## 301     GP   F  18       U     GT3       T    4    3 services    other
## 302     GP   M  18       U     GT3       T    4    3  teacher    other
## 303     GP   M  18       R     GT3       T    3    2    other    other
## 304     GP   F  17       U     GT3       T    3    3    other    other
## 305     GP   F  18       U     GT3       T    2    2  at_home services
## 306     GP   M  17       U     GT3       T    2    2    other    other
## 307     GP   M  18       R     LE3       A    3    4    other    other
## 308     GP   M  17       U     GT3       T    3    1 services    other
## 309     GP   F  18       R     GT3       T    4    4  teacher    other
## 310     GP   M  18       U     GT3       T    4    2   health    other
## 311     GP   F  18       R     GT3       T    2    1    other    other
## 312     GP   F  19       U     GT3       T    3    3    other services
## 313     GP   F  18       U     GT3       T    2    3    other services
## 314     GP   F  18       U     LE3       T    1    1    other    other
## 315     GP   M  17       R     GT3       T    1    2  at_home  at_home
## 316     GP   F  18       U     GT3       T    2    1    other    other
## 317     GP   F  17       U     GT3       T    2    4  at_home   health
## 318     GP   F  17       U     LE3       T    2    2 services    other
## 319     GP   F  18       R     GT3       A    3    2    other services
## 320     GP   M  18       U     GT3       T    4    4  teacher services
## 321     GP   F  18       U     GT3       T    4    4   health   health
## 322     GP   F  17       U     GT3       T    2    2    other services
## 323     GP   F  19       R     GT3       T    3    2 services services
## 324     GP   M  18       U     LE3       T    4    3  teacher services
## 325     GP   M  18       U     GT3       T    1    2  at_home    other
## 326     GP   M  17       U     LE3       A    4    1 services    other
## 327     GP   M  17       U     LE3       A    3    2  teacher services
## 328     GP   F  18       R     LE3       T    1    1  at_home    other
## 329     GP   F  18       U     GT3       T    1    1    other    other
## 330     GP   F  17       U     GT3       T    2    2    other    other
## 331     GP   F  18       U     GT3       T    2    1    other    other
## 332     GP   M  17       U     GT3       T    1    1    other    other
## 333     GP   F  18       U     GT3       T    2    2  at_home  at_home
## 334     GP   F  17       U     GT3       T    1    1 services  teacher
## 335     GP   M  18       U     GT3       T    2    1 services services
## 336     GP   M  18       U     LE3       A    4    4  teacher  teacher
## 337     GP   M  18       U     GT3       T    4    2  teacher    other
## 338     GP   F  17       U     GT3       T    4    3   health services
## 339     GP   F  17       R     LE3       T    3    1 services    other
## 340     GP   M  18       R     LE3       T    3    2 services    other
## 341     GP   M  17       U     GT3       T    3    3   health    other
## 342     GP   F  19       U     GT3       T    4    4   health    other
## 343     GP   F  18       U     LE3       T    4    3    other    other
## 344     GP   F  18       U     GT3       T    4    3    other    other
## 345     GP   M  18       U     LE3       T    4    4  teacher  teacher
## 346     GP   F  18       U     LE3       A    4    4   health    other
## 347     GP   M  17       U     LE3       T    4    4    other  teacher
## 348     GP   F  17       R     GT3       T    4    4 services services
## 349     GP   F  17       U     GT3       T    4    2    other    other
## 350     GP   F  17       U     GT3       T    3    2   health   health
## 351     GP   M  19       R     LE3       T    2    1  at_home services
## 352     GP   M  20       U     GT3       A    3    2 services    other
## 353     GP   M  19       R     GT3       T    3    3    other services
## 354     GP   F  18       U     GT3       T    1    4    other  teacher
## 355     GP   F  18       U     GT3       T    2    1 services    other
## 356     GP   F  17       U     GT3       T    2    3    other    other
## 357     GP   F  17       R     GT3       T    4    4  teacher  teacher
## 358     GP   F  18       U     GT3       T    4    3    other    other
## 359     GP   F  18       U     LE3       T    4    3   health services
## 360     GP   F  17       R     GT3       T    3    4  at_home services
## 361     GP   F  18       U     GT3       T    3    3  at_home    other
## 362     GP   M  19       U     GT3       T    4    2   health    other
## 363     GP   F  18       U     GT3       T    4    4  teacher    other
## 364     GP   F  18       U     GT3       T    3    4    other    other
## 365     GP   F  17       U     GT3       T    4    4   health   health
## 366     GP   F  17       U     GT3       A    4    3 services services
## 367     GP   F  17       U     LE3       A    3    3 services    other
## 368     GP   F  17       U     LE3       T    2    1    other    other
## 369     GP   M  18       U     LE3       T    4    4    other    other
## 370     GP   F  19       U     GT3       T    1    1    other    other
## 371     GP   F  19       U     LE3       A    1    1    other    other
## 372     GP   F  18       U     GT3       T    2    2    other    other
## 373     GP   F  17       U     GT3       T    2    2    other    other
## 374     GP   F  17       R     LE3       T    2    2 services services
## 375     GP   F  17       U     GT3       T    3    1 services services
## 376     GP   F  17       U     LE3       T    0    2  at_home  at_home
## 377     GP   F  18       U     GT3       T    1    1    other    other
## 378     GP   M  18       U     GT3       T    4    4    other    other
## 379     GP   M  17       U     GT3       T    3    3    other services
## 380     GP   M  17       R     GT3       T    2    2 services    other
## 381     GP   F  17       U     GT3       T    4    4  teacher services
## 382     GP   F  17       U     GT3       T    4    4  teacher  teacher
## 383     GP   F  17       U     GT3       T    3    3  at_home    other
## 384     GP   M  18       U     LE3       T    2    2    other    other
## 385     GP   M  19       R     GT3       T    3    2  at_home services
## 386     GP   F  18       U     GT3       T    2    2  at_home    other
## 387     GP   F  17       R     GT3       T    2    4  at_home    other
## 388     GP   M  18       U     GT3       T    2    2    other    other
## 389     GP   F  18       U     GT3       T    3    3 services services
## 390     GP   F  18       U     LE3       T    2    2    other    other
## 391     GP   F  18       R     GT3       T    2    2  at_home    other
## 392     GP   F  17       U     GT3       T    3    4 services    other
## 393     GP   F  17       U     GT3       T    3    2    other    other
## 394     GP   F  18       U     LE3       T    3    3 services services
## 395     GP   F  17       R     GT3       A    3    2    other    other
## 396     GP   M  18       U     GT3       T    4    4  teacher services
## 397     GP   M  18       U     LE3       T    3    4 services    other
## 398     GP   F  17       U     GT3       A    2    2  at_home  at_home
## 399     GP   F  18       U     GT3       T    2    3  at_home    other
## 400     GP   F  18       U     GT3       T    3    2    other services
## 401     GP   M  18       R     GT3       T    4    3  teacher services
## 402     GP   M  18       U     GT3       T    4    3  teacher    other
## 403     GP   F  17       U     GT3       T    4    3   health    other
## 404     GP   F  17       U     GT3       T    2    1 services    other
## 405     GP   F  17       U     GT3       T    2    1 services    other
## 406     GP   F  19       U     LE3       A    2    3  at_home    other
## 407     GP   F  17       U     GT3       T    3    1    other  at_home
## 408     GP   F  21       U     LE3       T    4    4    other    other
## 409     GP   M  18       U     LE3       T    2    2 services services
## 410     GP   M  18       U     LE3       A    3    4    other    other
## 411     GP   F  17       U     GT3       T    2    2 services services
## 412     GP   M  17       U     LE3       A    4    4   health    other
## 413     GP   F  18       U     LE3       T    4    2  teacher    other
## 414     GP   M  21       R     LE3       T    1    1  at_home    other
## 415     GP   F  20       R     GT3       T    1    1    other    other
## 416     GP   F  19       U     GT3       T    4    4  teacher    other
## 417     GP   M  17       U     LE3       A    3    2    other    other
## 418     GP   F  18       U     GT3       T    3    2  at_home    other
## 419     GP   M  18       R     GT3       T    2    3    other services
## 420     GP   M  19       U     GT3       T    2    1    other    other
## 421     GP   F  18       U     LE3       A    2    2 services    other
## 422     GP   F  20       U     GT3       T    1    0    other    other
## 423     GP   F  18       U     GT3       T    3    2 services    other
## 424     MS   F  16       U     GT3       T    1    3  at_home    other
## 425     MS   F  16       R     GT3       T    2    2    other    other
## 426     MS   F  15       R     GT3       T    1    1  at_home services
## 427     MS   F  15       R     GT3       T    3    3  at_home    other
## 428     MS   F  16       R     GT3       T    2    3  at_home services
## 429     MS   F  15       R     LE3       T    2    1  at_home    other
## 430     MS   M  16       R     LE3       A    4    4  at_home    other
## 431     MS   M  16       U     GT3       A    1    2    other    other
## 432     MS   F  17       R     GT3       T    3    2  at_home    other
## 433     MS   F  17       R     GT3       T    1    1    other    other
## 434     MS   F  15       R     GT3       T    4    4  teacher    other
## 435     MS   F  16       U     LE3       A    2    2  at_home    other
## 436     MS   F  15       R     LE3       T    1    1  at_home services
## 437     MS   F  15       R     LE3       T    1    1    other services
## 438     MS   F  16       R     GT3       T    0    2    other    other
## 439     MS   F  17       R     GT3       T    2    3    other    other
## 440     MS   F  15       R     GT3       T    3    3    other services
## 441     MS   M  16       U     GT3       T    1    1  at_home services
## 442     MS   M  17       U     GT3       T    1    1    other    other
## 443     MS   M  15       R     LE3       T    4    1   health services
## 444     MS   M  15       R     LE3       T    4    1   health services
## 445     MS   M  16       R     GT3       T    3    4    other   health
## 446     MS   M  15       R     GT3       T    1    1    other    other
## 447     MS   M  15       U     LE3       T    3    3  at_home  at_home
## 448     MS   M  17       R     GT3       T    2    1    other    other
## 449     MS   F  16       R     GT3       T    4    4  teacher  teacher
## 450     MS   F  15       R     GT3       T    1    2    other services
## 451     MS   F  16       R     GT3       T    2    3    other services
## 452     MS   M  16       R     GT3       T    1    2    other    other
## 453     MS   F  16       R     GT3       T    2    2    other    other
## 454     MS   F  16       U     GT3       T    1    2    other services
## 455     MS   F  16       U     GT3       T    1    2    other services
## 456     MS   F  15       U     GT3       T    2    1  at_home    other
## 457     MS   F  16       U     GT3       T    1    1  at_home    other
## 458     MS   M  17       R     LE3       T    1    2  at_home services
## 459     MS   F  16       R     GT3       T    1    1    other    other
## 460     MS   F  16       R     GT3       T    1    1  at_home    other
## 461     MS   F  15       R     GT3       T    1    1  at_home    other
## 462     MS   F  16       R     GT3       T    1    1  at_home    other
## 463     MS   F  15       R     GT3       T    1    1  at_home  at_home
## 464     MS   F  15       R     LE3       T    2    2    other    other
## 465     MS   M  16       R     GT3       T    1    1  at_home    other
## 466     MS   F  18       U     GT3       T    1    2    other    other
## 467     MS   M  15       U     GT3       T    3    1    other services
## 468     MS   F  16       R     GT3       T    2    2    other services
## 469     MS   M  15       U     GT3       T    2    2   health    other
## 470     MS   M  16       U     GT3       T    4    4    other  teacher
## 471     MS   F  15       R     GT3       T    3    3 services    other
## 472     MS   F  16       R     GT3       T    2    2  at_home    other
## 473     MS   F  16       R     LE3       T    2    2    other    other
## 474     MS   M  16       U     LE3       T    2    1  at_home services
## 475     MS   M  15       R     LE3       T    1    3  at_home    other
## 476     MS   F  15       U     GT3       T    2    2    other services
## 477     MS   F  16       R     LE3       T    2    1    other    other
## 478     MS   M  15       U     GT3       T    3    3 services services
## 479     MS   F  16       R     GT3       T    1    1  at_home    other
## 480     MS   F  17       U     GT3       T    2    2    other  at_home
## 481     MS   F  19       U     GT3       T    2    3  at_home services
## 482     MS   F  17       R     GT3       T    2    1  at_home    other
## 483     MS   F  15       R     LE3       T    1    1  at_home    other
## 484     MS   F  16       R     GT3       T    2    2    other    other
## 485     MS   F  16       U     LE3       A    2    2    other    other
## 486     MS   F  17       R     GT3       T    2    2  at_home    other
## 487     MS   F  16       U     GT3       T    2    2    other services
## 488     MS   F  18       R     LE3       A    3    2    other    other
## 489     MS   F  19       U     GT3       T    1    1  at_home services
## 490     MS   M  18       R     GT3       T    1    1    other    other
## 491     MS   F  18       R     GT3       T    1    1  at_home  at_home
## 492     MS   F  19       U     GT3       T    1    1    other    other
## 493     MS   F  16       R     GT3       A    2    2   health    other
## 494     MS   F  17       U     GT3       T    0    1    other  at_home
## 495     MS   F  16       R     LE3       T    1    2  at_home    other
## 496     MS   F  16       U     GT3       T    3    3    other    other
## 497     MS   F  16       R     LE3       T    1    1 services services
## 498     MS   M  17       U     GT3       T    3    3 services  at_home
## 499     MS   F  16       U     GT3       T    2    1    other services
## 500     MS   F  16       U     GT3       T    2    2 services    other
## 501     MS   M  17       U     GT3       T    1    2    other    other
## 502     MS   M  16       U     LE3       T    4    3    other    other
## 503     MS   M  17       R     LE3       T    2    2 services services
## 504     MS   F  16       U     GT3       T    1    1    other    other
## 505     MS   F  19       U     LE3       T    2    2    other    other
## 506     MS   F  17       R     GT3       T    1    1  at_home    other
## 507     MS   F  20       U     GT3       T    3    3  at_home services
## 508     MS   F  17       U     LE3       T    1    1    other services
## 509     MS   M  17       R     GT3       T    2    2    other    other
## 510     MS   F  16       R     LE3       T    1    1  at_home    other
## 511     MS   F  17       R     GT3       T    2    2    other    other
## 512     MS   F  17       U     GT3       A    1    0    other    other
## 513     MS   F  18       R     GT3       T    1    1  at_home    other
## 514     MS   F  16       U     GT3       T    3    1    other    other
## 515     MS   F  16       U     GT3       T    3    2 services  at_home
## 516     MS   F  18       U     LE3       T    1    1    other  at_home
## 517     MS   F  16       R     GT3       T    4    4   health  teacher
## 518     MS   F  16       R     LE3       T    1    2    other    other
## 519     MS   F  18       U     GT3       A    2    4    other services
## 520     MS   M  16       R     GT3       T    2    1    other services
## 521     MS   F  16       U     LE3       T    1    1  at_home    other
## 522     MS   F  16       R     GT3       T    2    3  at_home services
## 523     MS   F  16       U     GT3       T    4    4   health   health
## 524     MS   M  18       U     LE3       T    4    4  at_home   health
## 525     MS   F  16       R     LE3       T    3    4  at_home    other
## 526     MS   M  17       U     LE3       T    4    4    other services
## 527     MS   F  17       R     GT3       T    4    1    other    other
## 528     MS   M  16       U     LE3       T    2    2 services services
## 529     MS   F  17       R     GT3       T    2    2  at_home    other
## 530     MS   F  16       U     LE3       T    4    4 services services
## 531     MS   M  17       U     GT3       T    3    3 services services
## 532     MS   M  17       U     GT3       T    1    1  at_home services
## 533     MS   M  16       U     GT3       T    2    1   health services
## 534     MS   F  16       U     LE3       T    2    1    other services
## 535     MS   M  16       U     LE3       T    4    4  teacher   health
## 536     MS   M  15       R     GT3       T    1    2    other services
## 537     MS   M  15       U     LE3       A    2    2    other    other
## 538     MS   M  15       U     LE3       A    2    1 services services
## 539     MS   F  16       R     LE3       T    2    2    other    other
## 540     MS   F  16       U     LE3       T    4    1    other    other
## 541     MS   F  17       U     GT3       T    3    2  at_home    other
## 542     MS   F  17       R     GT3       T    2    2    other    other
## 543     MS   F  16       U     GT3       T    4    4  teacher services
## 544     MS   M  17       R     GT3       T    4    4   health    other
## 545     MS   M  17       R     LE3       T    1    3    other    other
## 546     MS   M  17       U     GT3       T    3    4 services    other
## 547     MS   F  17       U     GT3       T    4    4   health   health
## 548     MS   M  16       R     LE3       T    4    1    other  at_home
## 549     MS   F  17       U     GT3       A    1    1  at_home  at_home
## 550     MS   F  17       R     GT3       T    4    2    other    other
## 551     MS   M  16       U     LE3       A    2    2    other services
## 552     MS   M  17       U     GT3       T    3    2    other    other
## 553     MS   M  19       U     GT3       T    1    1    other    other
## 554     MS   M  17       U     LE3       A    1    0    other    other
## 555     MS   F  17       R     GT3       T    1    1  at_home  at_home
## 556     MS   F  16       R     GT3       T    1    2    other    other
## 557     MS   M  16       R     LE3       T    1    2    other  at_home
## 558     MS   F  17       R     GT3       T    3    1    other    other
## 559     MS   M  17       R     GT3       T    2    2    other    other
## 560     MS   M  18       R     GT3       T    1    0  at_home  at_home
## 561     MS   M  17       R     GT3       T    1    1    other services
## 562     MS   M  18       U     LE3       T    1    1  at_home  at_home
## 563     MS   F  16       R     LE3       T    2    2    other services
## 564     MS   M  17       U     GT3       T    2    2    other    other
## 565     MS   M  16       R     GT3       T    3    2 services    other
## 566     MS   M  16       R     LE3       T    1    1  at_home    other
## 567     MS   M  18       R     GT3       T    1    1 services    other
## 568     MS   M  18       R     GT3       T    3    2 services    other
## 569     MS   M  19       U     GT3       T    3    2  at_home services
## 570     MS   M  18       U     GT3       T    3    3  at_home  at_home
## 571     MS   M  16       R     GT3       T    2    2 services services
## 572     MS   M  19       U     GT3       T    2    1  at_home    other
## 573     MS   F  16       U     GT3       A    3    2 services  at_home
## 574     MS   F  17       U     GT3       T    1    1    other  at_home
## 575     MS   M  20       R     GT3       T    1    1    other    other
## 576     MS   F  18       R     GT3       A    4    3 services services
## 577     MS   M  18       R     GT3       T    3    2    other    other
## 578     MS   M  19       R     GT3       T    1    1    other services
## 579     MS   M  17       U     GT3       T    3    3   health    other
## 580     MS   M  18       U     LE3       T    1    3  at_home services
## 581     MS   M  19       R     GT3       T    1    1    other    other
## 582     MS   F  18       U     GT3       A    1    2  at_home    other
## 583     MS   F  19       U     LE3       A    1    1  at_home    other
## 584     MS   F  18       R     GT3       T    2    2    other    other
## 585     MS   F  17       R     GT3       T    0    0  at_home    other
## 586     MS   F  17       R     LE3       A    3    1    other  at_home
## 587     MS   F  17       U     GT3       T    4    2  teacher services
## 588     MS   F  18       R     LE3       T    2    2 services services
## 589     MS   F  17       U     GT3       T    4    1   health  at_home
## 590     MS   F  17       U     LE3       T    1    2  at_home    other
## 591     MS   F  18       U     GT3       T    1    1    other    other
## 592     MS   F  18       U     GT3       T    2    2 services  at_home
## 593     MS   F  17       U     GT3       T    3    3 services services
## 594     MS   F  18       U     LE3       A    1    2  at_home    other
## 595     MS   F  18       U     GT3       T    4    4  teacher  teacher
## 596     MS   M  18       U     LE3       T    4    4 services    other
## 597     MS   F  17       U     GT3       T    4    2    other    other
## 598     MS   F  18       R     GT3       T    2    2  at_home    other
## 599     MS   M  18       U     LE3       T    1    2  at_home services
## 600     MS   M  18       R     GT3       T    4    4  at_home services
## 601     MS   M  17       R     GT3       T    1    1    other services
## 602     MS   F  18       U     GT3       T    2    2    other    other
## 603     MS   F  18       U     LE3       T    2    2 services services
## 604     MS   F  18       R     LE3       A    4    2  teacher    other
## 605     MS   F  18       U     GT3       T    1    1  at_home services
## 606     MS   F  19       U     GT3       T    1    1  at_home services
## 607     MS   F  17       U     GT3       T    4    2  teacher    other
## 608     MS   F  17       R     LE3       A    2    1 services    other
## 609     MS   F  18       U     LE3       A    1    1  at_home services
## 610     MS   F  18       U     GT3       T    1    2  at_home  at_home
## 611     MS   F  19       R     GT3       A    1    1  at_home  at_home
## 612     MS   F  18       R     GT3       T    2    2 services    other
## 613     MS   M  17       R     GT3       T    4    3 services    other
## 614     MS   F  18       U     GT3       T    3    3 services services
## 615     MS   F  17       R     GT3       T    4    4  teacher services
## 616     MS   F  17       U     LE3       A    3    2 services    other
## 617     MS   M  18       U     LE3       T    1    1    other services
## 618     MS   F  18       U     LE3       T    1    1  at_home services
## 619     MS   F  18       R     LE3       A    1    2  at_home    other
## 620     MS   F  18       U     GT3       T    3    3 services services
## 621     MS   F  17       U     LE3       T    4    4  at_home  at_home
## 622     MS   F  17       R     GT3       T    1    2    other services
## 623     MS   M  18       R     GT3       T    1    3  at_home    other
## 624     MS   M  18       U     LE3       T    4    4  teacher services
## 625     MS   F  17       R     GT3       T    1    1    other services
## 626     MS   F  18       U     GT3       T    2    3  at_home services
## 627     MS   F  18       R     GT3       T    4    4    other  teacher
## 628     MS   M  18       R     LE3       T    1    2  at_home services
## 629     MS   F  17       U     GT3       T    2    2    other  at_home
## 630     MS   F  17       R     GT3       T    1    2    other    other
## 631     MS   F  18       R     LE3       T    4    4    other    other
## 632     MS   F  18       R     GT3       T    1    1    other    other
## 633     MS   F  19       R     GT3       T    1    1  at_home    other
## 634     MS   F  18       R     LE3       T    4    4  teacher services
## 635     MS   F  18       U     GT3       T    3    3    other    other
## 636     MS   F  17       R     GT3       T    3    1  at_home    other
## 637     MS   M  18       U     GT3       T    4    4  teacher  teacher
## 638     MS   M  18       R     GT3       T    2    1    other    other
## 639     MS   M  17       U     GT3       T    2    3    other services
## 640     MS   M  19       R     GT3       T    1    1    other services
## 641     MS   M  18       R     GT3       T    4    2    other    other
## 642     MS   F  18       R     GT3       T    2    2  at_home    other
## 643     MS   F  17       U     GT3       T    4    3  teacher    other
## 644     MS   F  18       R     GT3       T    4    4  teacher  at_home
## 645     MS   F  19       R     GT3       T    2    3 services    other
## 646     MS   F  18       U     LE3       T    3    1  teacher services
## 647     MS   F  18       U     GT3       T    1    1    other    other
## 648     MS   M  17       U     LE3       T    3    1 services services
## 649     MS   M  18       R     LE3       T    3    2 services    other
##         reason guardian traveltime studytime failures schoolsup famsup
## 1       course   mother          2         2        0       yes     no
## 2       course   father          1         2        0        no    yes
## 3        other   mother          1         2        0       yes     no
## 4         home   mother          1         3        0        no    yes
## 5         home   father          1         2        0        no    yes
## 6   reputation   mother          1         2        0        no    yes
## 7         home   mother          1         2        0        no     no
## 8         home   mother          2         2        0       yes    yes
## 9         home   mother          1         2        0        no    yes
## 10        home   mother          1         2        0        no    yes
## 11  reputation   mother          1         2        0        no    yes
## 12  reputation   father          3         3        0        no    yes
## 13      course   father          1         1        0        no    yes
## 14      course   mother          2         2        0        no    yes
## 15        home    other          1         3        0        no    yes
## 16        home   mother          1         1        0        no    yes
## 17  reputation   mother          1         3        0        no    yes
## 18  reputation   mother          3         2        0       yes    yes
## 19      course   mother          1         1        3        no    yes
## 20        home   father          1         1        0        no     no
## 21  reputation   mother          1         2        0        no     no
## 22       other   father          1         1        0        no    yes
## 23      course   mother          1         2        0        no     no
## 24  reputation   mother          2         2        0        no    yes
## 25      course   mother          1         3        0       yes    yes
## 26        home   mother          1         1        0        no    yes
## 27        home   mother          1         1        0        no    yes
## 28       other   mother          1         1        0        no     no
## 29        home   mother          1         2        0       yes    yes
## 30        home   mother          1         2        0        no    yes
## 31        home   mother          1         2        0        no    yes
## 32  reputation   mother          2         2        0        no    yes
## 33      course   mother          1         2        0        no    yes
## 34      course   mother          1         2        0        no     no
## 35        home   mother          1         1        0        no    yes
## 36       other   father          2         1        0        no    yes
## 37        home   mother          1         3        0        no    yes
## 38  reputation   mother          2         3        0        no    yes
## 39      course   mother          1         3        0       yes    yes
## 40  reputation   mother          1         1        0       yes    yes
## 41        home   mother          2         2        0        no    yes
## 42        home    other          1         1        0        no    yes
## 43      course   father          1         2        0        no    yes
## 44      course   father          1         1        0       yes    yes
## 45      course   father          2         2        1       yes     no
## 46      course   mother          1         2        0       yes    yes
## 47        home   mother          1         2        0        no    yes
## 48  reputation   mother          1         4        0        no     no
## 49        home   mother          1         2        0        no    yes
## 50       other   father          1         2        0       yes    yes
## 51      course   mother          3         2        0        no    yes
## 52       other   mother          1         2        0        no    yes
## 53       other   father          2         1        0        no     no
## 54      course   mother          1         1        0       yes    yes
## 55       other   mother          1         1        0        no     no
## 56       other   mother          1         2        0        no     no
## 57  reputation   mother          1         2        0        no    yes
## 58  reputation   mother          1         2        0        no    yes
## 59        home   father          1         2        0       yes    yes
## 60      course   mother          1         2        0        no    yes
## 61       other   mother          1         2        0        no    yes
## 62      course   father          4         1        0       yes    yes
## 63  reputation   father          1         2        0       yes     no
## 64        home   mother          1         3        0       yes    yes
## 65  reputation   father          1         2        0       yes     no
## 66      course   mother          3         2        0        no    yes
## 67  reputation   mother          1         4        0        no    yes
## 68      course   mother          1         4        0       yes    yes
## 69  reputation   mother          2         2        0       yes    yes
## 70  reputation   father          2         4        0        no    yes
## 71  reputation   father          2         4        0        no    yes
## 72      course   mother          1         4        0        no     no
## 73  reputation   mother          1         2        0       yes    yes
## 74  reputation   mother          1         1        0        no     no
## 75        home   mother          1         2        0       yes    yes
## 76        home   mother          1         2        0        no    yes
## 77      course   mother          2         4        0        no     no
## 78  reputation   mother          1         4        0        no     no
## 79        home   mother          2         1        3       yes    yes
## 80      course   mother          1         2        0        no    yes
## 81      course   father          1         1        0       yes    yes
## 82        home   mother          1         3        0       yes     no
## 83  reputation   mother          1         2        0        no    yes
## 84        home   mother          2         2        0        no     no
## 85        home   father          1         2        0        no    yes
## 86  reputation   father          2         2        0        no     no
## 87      course   mother          1         2        0        no    yes
## 88  reputation   mother          1         3        0        no    yes
## 89  reputation   father          2         2        0        no     no
## 90  reputation   mother          1         2        0        no    yes
## 91        home   mother          1         3        0        no    yes
## 92  reputation   mother          1         1        0        no     no
## 93        home   father          1         2        0       yes    yes
## 94        home   mother          2         2        0        no    yes
## 95  reputation   mother          1         4        0        no    yes
## 96        home   mother          2         4        0       yes    yes
## 97  reputation   mother          2         1        0       yes    yes
## 98      course   mother          1         2        0        no    yes
## 99  reputation   mother          1         1        0        no     no
## 100     course   mother          1         3        0       yes    yes
## 101      other   mother          1         1        0       yes    yes
## 102      other   father          1         3        0        no    yes
## 103     course   mother          1         1        0        no    yes
## 104       home   mother          2         2        0       yes    yes
## 105     course   mother          1         2        0        no    yes
## 106 reputation   father          1         4        0       yes     no
## 107     course   mother          1         4        0       yes    yes
## 108       home   father          1         3        0        no    yes
## 109       home   father          4         4        0        no    yes
## 110      other   mother          1         3        0        no    yes
## 111     course   mother          1         1        0        no     no
## 112 reputation   father          1         3        0       yes    yes
## 113       home   mother          1         2        1       yes     no
## 114     course   mother          1         1        0        no     no
## 115 reputation   mother          1         2        0        no     no
## 116     course   father          1         2        0        no    yes
## 117 reputation   father          2         2        0        no    yes
## 118       home   father          2         1        0        no     no
## 119     course   father          3         2        1        no    yes
## 120 reputation   father          1         1        0        no     no
## 121     course   mother          1         2        0        no     no
## 122       home   father          1         4        0        no    yes
## 123     course   father          2         2        0        no    yes
## 124     course   mother          1         1        0        no    yes
## 125       home   mother          1         2        0        no     no
## 126       home   father          1         1        0       yes     no
## 127       home   mother          1         2        0       yes     no
## 128     course    other          1         2        2        no    yes
## 129     course   mother          1         1        0        no     no
## 130     course   mother          2         3        0        no    yes
## 131     course   father          2         3        0        no    yes
## 132 reputation   mother          1         2        3        no    yes
## 133     course   mother          3         1        0        no    yes
## 134     course   mother          3         1        0        no    yes
## 135     course   father          1         1        0        no    yes
## 136     course   father          1         1        0        no     no
## 137     course   mother          4         1        0        no     no
## 138       home   mother          1         1        1        no     no
## 139     course   mother          4         2        0        no    yes
## 140     course   mother          1         3        0        no    yes
## 141     course   mother          3         2        0        no     no
## 142     course   mother          4         2        0        no    yes
## 143     course   mother          2         1        0        no     no
## 144     course    other          1         3        0        no    yes
## 145 reputation   mother          2         1        0        no    yes
## 146     course    other          2         1        0        no    yes
## 147     course   mother          1         2        2        no     no
## 148     course   mother          2         1        0        no     no
## 149     course   mother          3         1        1        no     no
## 150     course   father          2         4        0       yes    yes
## 151       home   mother          1         2        0        no     no
## 152     course   mother          1         3        0        no    yes
## 153 reputation   father          2         1        0        no    yes
## 154     course   mother          1         3        0        no    yes
## 155     course   mother          1         1        0        no     no
## 156       home   mother          1         1        0        no    yes
## 157     course   father          1         2        0        no    yes
## 158       home   mother          2         1        0        no    yes
## 159       home   father          1         2        1        no    yes
## 160     course   mother          1         2        0        no    yes
## 161     course   father          1         2        0        no     no
## 162     course   mother          1         1        0        no    yes
## 163     course   mother          4         1        0        no     no
## 164     course   mother          1         1        2        no     no
## 165     course   mother          1         1        1        no     no
## 166 reputation    other          2         3        0        no    yes
## 167       home   mother          1         1        0        no    yes
## 168     course   mother          1         1        0       yes    yes
## 169     course   mother          1         2        0       yes     no
## 170 reputation   mother          1         1        3        no     no
## 171     course   mother          3         1        3        no    yes
## 172     course   mother          3         1        0        no     no
## 173     course   father          1         2        1        no    yes
## 174     course   mother          2         1        2        no     no
## 175     course   mother          2         1        1        no     no
## 176     course   mother          2         2        2       yes    yes
## 177     course   mother          2         1        0        no     no
## 178     course   father          1         1        1        no     no
## 179     course   mother          4         2        0        no     no
## 180     course   mother          2         1        3        no    yes
## 181     course   father          1         2        0        no     no
## 182       home   father          1         2        0        no     no
## 183       home   mother          1         2        0        no    yes
## 184 reputation   mother          1         2        0        no    yes
## 185     course   father          3         1        1        no    yes
## 186 reputation   mother          2         2        0        no    yes
## 187 reputation   mother          1         2        0        no    yes
## 188       home   mother          1         2        0        no     no
## 189 reputation   mother          2         2        0        no    yes
## 190     course   mother          2         2        0        no     no
## 191 reputation   mother          2         2        0        no     no
## 192 reputation   father          1         2        0        no     no
## 193      other   mother          1         1        0        no    yes
## 194     course   mother          1         2        0        no    yes
## 195       home   mother          1         2        0        no    yes
## 196       home   mother          1         2        0        no     no
## 197 reputation   father          1         2        0        no    yes
## 198 reputation   mother          1         2        0        no    yes
## 199 reputation   mother          1         2        0        no    yes
## 200      other   mother          1         2        0        no    yes
## 201      other   mother          1         1        0        no    yes
## 202     course   mother          1         2        0        no     no
## 203 reputation   mother          1         2        0        no    yes
## 204       home   mother          1         2        0        no     no
## 205     course   mother          1         2        0        no     no
## 206     course   mother          1         2        0        no     no
## 207      other    other          2         2        0        no     no
## 208 reputation   mother          1         1        0        no    yes
## 209       home   father          2         1        0        no     no
## 210     course   father          1         2        0        no     no
## 211       home   mother          1         1        0        no     no
## 212       home   father          3         1        0        no    yes
## 213       home   mother          2         1        1        no    yes
## 214 reputation   mother          1         2        0        no    yes
## 215       home   mother          1         2        0        no    yes
## 216 reputation   mother          1         2        0       yes    yes
## 217     course   mother          1         2        0        no    yes
## 218 reputation   mother          1         1        0        no    yes
## 219 reputation   mother          2         4        0        no    yes
## 220       home   mother          1         3        1        no    yes
## 221     course   mother          1         2        0        no    yes
## 222      other   mother          1         2        0        no     no
## 223       home   mother          2         1        0        no    yes
## 224 reputation   mother          2         3        0        no    yes
## 225 reputation    other          1         4        0        no    yes
## 226       home   mother          1         2        0        no    yes
## 227 reputation   mother          1         2        0       yes    yes
## 228       home   mother          1         2        0        no    yes
## 229      other   mother          1         1        0        no    yes
## 230 reputation   mother          2         2        0        no     no
## 231 reputation   mother          1         2        0        no     no
## 232       home   father          1         2        0        no    yes
## 233       home   father          2         1        0        no    yes
## 234     course   mother          1         3        0        no    yes
## 235 reputation   mother          2         2        0        no    yes
## 236 reputation   mother          1         3        0        no    yes
## 237      other   mother          1         2        0       yes     no
## 238       home   mother          2         2        3        no    yes
## 239       home   mother          1         3        0        no    yes
## 240 reputation   mother          1         2        0        no     no
## 241     course   mother          1         2        0        no     no
## 242 reputation   father          1         2        0        no    yes
## 243     course   mother          4         2        0       yes    yes
## 244     course   mother          2         3        0        no     no
## 245 reputation   father          1         2        0        no     no
## 246     course   father          2         2        0        no    yes
## 247 reputation   mother          1         2        0       yes    yes
## 248 reputation   father          1         2        0        no    yes
## 249       home   mother          2         2        0        no    yes
## 250 reputation   mother          2         3        0        no     no
## 251       home   father          1         2        0        no     no
## 252       home   mother          1         1        0        no     no
## 253       home   mother          1         2        0        no     no
## 254     course   mother          2         2        1        no    yes
## 255     course   mother          1         2        1        no    yes
## 256     course   mother          2         1        1        no     no
## 257     course    other          1         1        1        no    yes
## 258     course   mother          1         1        0        no    yes
## 259     course   father          1         2        0        no     no
## 260     course   mother          1         3        0        no    yes
## 261     course   mother          1         1        0        no     no
## 262     course   mother          3         2        0        no     no
## 263     course    other          4         1        1        no    yes
## 264 reputation   father          1         2        0        no     no
## 265       home   mother          1         1        1        no    yes
## 266     course   mother          2         3        0        no     no
## 267     course   mother          1         2        0        no    yes
## 268     course   mother          2         2        0        no     no
## 269     course   mother          2         2        0        no    yes
## 270     course   mother          1         1        0        no     no
## 271     course   mother          1         1        0        no     no
## 272     course   mother          1         2        0        no    yes
## 273       home   father          2         3        0        no     no
## 274       home   mother          2         3        0        no    yes
## 275     course   mother          1         2        0       yes     no
## 276     course    other          2         3        0        no    yes
## 277     course   mother          3         1        0        no     no
## 278     course   father          1         2        0        no    yes
## 279     course   father          2         1        0        no     no
## 280      other   mother          1         1        3        no     no
## 281     course   mother          1         2        0        no    yes
## 282      other   mother          1         1        0        no     no
## 283     course   mother          2         1        0        no     no
## 284 reputation    other          3         2        1       yes    yes
## 285      other   mother          1         1        2        no     no
## 286     course   mother          2         1        0        no     no
## 287     course   mother          1         1        0        no     no
## 288     course   mother          2         1        1        no    yes
## 289     course   mother          1         2        0        no    yes
## 290 reputation   mother          1         4        0        no    yes
## 291       home   mother          1         2        0        no    yes
## 292     course   mother          3         2        1        no     no
## 293     course   mother          1         3        0        no    yes
## 294       home   mother          1         3        0        no    yes
## 295       home   mother          1         2        0       yes     no
## 296 reputation   mother          1         2        0        no    yes
## 297       home   mother          1         2        0        no     no
## 298      other   mother          2         1        0        no     no
## 299     course   father          1         4        0        no     no
## 300     course    other          2         2        0        no    yes
## 301       home   father          1         2        0        no    yes
## 302     course   mother          1         2        0        no    yes
## 303     course   mother          1         3        0        no     no
## 304       home   mother          1         3        0        no     no
## 305       home   mother          1         3        0        no    yes
## 306       home   father          2         1        0        no     no
## 307 reputation   mother          2         2        0        no    yes
## 308      other   mother          1         2        0        no     no
## 309 reputation   mother          2         2        0        no     no
## 310 reputation   father          1         2        0        no    yes
## 311 reputation   mother          2         2        0        no    yes
## 312       home    other          1         2        0        no    yes
## 313 reputation   father          1         4        0        no    yes
## 314       home   mother          2         2        0        no    yes
## 315       home   mother          1         2        0        no    yes
## 316       home   mother          1         2        0        no    yes
## 317 reputation   mother          2         2        0        no    yes
## 318     course   mother          2         2        0       yes    yes
## 319       home   mother          2         2        0        no     no
## 320       home   mother          2         1        0        no     no
## 321 reputation   father          1         2        1       yes    yes
## 322 reputation   father          3         3        0        no    yes
## 323 reputation   father          1         2        1       yes    yes
## 324     course   mother          2         1        0        no     no
## 325       home    other          2         1        0        no     no
## 326       home   mother          2         1        0        no     no
## 327       home   mother          1         1        0        no     no
## 328 reputation   mother          2         4        0        no    yes
## 329       home   mother          2         2        0       yes     no
## 330     course   mother          1         2        0        no    yes
## 331 reputation   mother          2         2        0        no     no
## 332 reputation   father          1         2        0        no     no
## 333      other   mother          1         3        0        no    yes
## 334 reputation   mother          1         3        0        no    yes
## 335 reputation   mother          1         3        0        no     no
## 336 reputation   mother          1         2        0        no    yes
## 337       home   mother          1         2        0        no    yes
## 338 reputation   mother          1         3        0        no    yes
## 339 reputation   mother          2         4        0        no    yes
## 340 reputation   mother          2         3        0        no    yes
## 341       home   mother          1         1        0        no    yes
## 342 reputation    other          2         2        0        no    yes
## 343       home    other          2         2        0        no    yes
## 344 reputation   father          1         4        0        no    yes
## 345       home   mother          1         1        0        no    yes
## 346       home   mother          1         2        0        no    yes
## 347       home   father          2         1        0        no     no
## 348 reputation   mother          2         3        0        no    yes
## 349 reputation   mother          2         3        0        no    yes
## 350 reputation   father          1         4        0        no    yes
## 351     course   mother          2         3        1        no     no
## 352     course    other          1         1        2        no     no
## 353 reputation   father          1         2        0        no     no
## 354       home   mother          1         2        0       yes    yes
## 355     course   mother          2         2        0        no    yes
## 356     course   father          2         2        0        no     no
## 357     course   mother          1         1        0        no     no
## 358     course   mother          1         3        0        no    yes
## 359     course   mother          2         1        0        no    yes
## 360     course   father          1         3        0        no    yes
## 361     course   father          1         2        0        no    yes
## 362     course   mother          2         2        0        no    yes
## 363     course   mother          1         2        0        no    yes
## 364     course   mother          1         1        0        no    yes
## 365     course   mother          1         1        0        no     no
## 366     course   mother          1         2        0        no    yes
## 367       home   mother          1         2        0       yes    yes
## 368       home   father          1         2        0        no     no
## 369 reputation   father          1         1        0        no    yes
## 370     course    other          3         3        0        no     no
## 371     course    other          3         2        2        no    yes
## 372     course   mother          1         1        0        no    yes
## 373     course   mother          1         2        0        no    yes
## 374     course   mother          1         3        0        no    yes
## 375     course   father          1         3        0        no    yes
## 376       home   father          2         3        0        no     no
## 377       home   mother          2         3        0        no     no
## 378     course   mother          1         3        0        no     no
## 379 reputation   mother          1         1        0        no     no
## 380     course   mother          4         1        0        no    yes
## 381     course   mother          1         3        0        no    yes
## 382     course   mother          2         3        0        no    yes
## 383     course   mother          1         1        0        no    yes
## 384     course   mother          1         4        0        no    yes
## 385       home    other          1         1        0        no    yes
## 386     course   mother          4         2        0        no     no
## 387     course   father          1         3        0        no    yes
## 388 reputation   mother          1         1        0        no     no
## 389       home   mother          1         2        0        no     no
## 390       home    other          1         2        0        no     no
## 391     course   mother          2         4        0        no     no
## 392     course   mother          1         3        0        no     no
## 393       home   mother          1         2        0        no    yes
## 394       home   mother          1         4        0        no    yes
## 395       home   mother          1         2        0        no    yes
## 396       home   father          1         2        0        no    yes
## 397       home   mother          1         2        0        no     no
## 398       home   father          1         2        0        no    yes
## 399     course   mother          1         3        0        no    yes
## 400      other   mother          1         3        0        no     no
## 401     course   mother          1         3        0        no     no
## 402     course   mother          1         3        0        no    yes
## 403 reputation   mother          1         3        0        no    yes
## 404     course   mother          2         2        0        no    yes
## 405 reputation   mother          1         2        0        no    yes
## 406       home    other          2         1        1        no     no
## 407       home   mother          1         1        1        no    yes
## 408 reputation    other          1         3        2        no     no
## 409 reputation   mother          1         2        0        no    yes
## 410 reputation    other          1         2        0        no     no
## 411 reputation   mother          1         2        0        no    yes
## 412 reputation   mother          1         3        0        no    yes
## 413     course   mother          1         2        0        no    yes
## 414     course    other          2         2        2        no    yes
## 415 reputation    other          2         3        0        no     no
## 416       home    other          1         1        1        no    yes
## 417 reputation   mother          1         2        0        no    yes
## 418 reputation   father          1         3        0        no    yes
## 419 reputation   father          1         1        0        no     no
## 420 reputation   mother          1         1        0        no     no
## 421 reputation   mother          2         2        0        no    yes
## 422 reputation   mother          2         1        1       yes     no
## 423       home   mother          1         2        0        no    yes
## 424      other   father          2         1        0        no    yes
## 425     course   mother          2         2        0        no    yes
## 426      other   mother          1         1        1        no    yes
## 427     course   mother          2         1        0        no    yes
## 428     course   mother          2         2        0        no     no
## 429       home   mother          2         1        0        no     no
## 430       home   mother          1         2        0        no    yes
## 431      other   mother          1         3        0       yes     no
## 432     course   father          1         2        1        no     no
## 433      other   father          1         1        1        no    yes
## 434     course   mother          2         1        0        no     no
## 435 reputation   mother          2         4        0        no     no
## 436 reputation   father          2         2        0        no    yes
## 437     course   mother          2         1        1        no    yes
## 438      other   mother          2         1        0        no    yes
## 439     course   mother          2         1        0        no    yes
## 440     course   father          2         1        0        no     no
## 441       home   mother          2         2        0        no    yes
## 442       home   mother          1         2        0        no     no
## 443 reputation   father          1         2        0        no    yes
## 444 reputation   father          1         2        0        no    yes
## 445      other   mother          3         2        0        no     no
## 446     course   mother          4         2        0        no    yes
## 447 reputation   father          1         2        0        no    yes
## 448      other   mother          3         1        0        no     no
## 449     course   mother          2         3        0        no     no
## 450     course   mother          2         1        0        no     no
## 451     course   mother          3         2        0        no    yes
## 452     course   father          2         2        0        no     no
## 453     course   mother          3         2        0        no    yes
## 454     course   mother          1         3        1        no    yes
## 455     course   mother          1         3        1        no    yes
## 456       home   mother          1         2        0       yes    yes
## 457     course   father          1         2        0        no    yes
## 458 reputation   mother          1         1        0        no    yes
## 459       home   father          4         4        0        no    yes
## 460      other   father          4         3        0       yes    yes
## 461       home   father          2         2        0        no    yes
## 462      other   mother          2         1        0        no     no
## 463     course   father          3         2        0        no    yes
## 464      other   father          1         3        0       yes    yes
## 465      other   father          2         1        0        no     no
## 466     course   father          1         2        1        no    yes
## 467       home   mother          2         1        0        no    yes
## 468     course   father          3         2        0        no    yes
## 469 reputation   mother          3         1        0        no     no
## 470     course   father          1         2        0        no    yes
## 471 reputation   mother          1         2        0        no    yes
## 472     course   mother          2         2        1        no    yes
## 473       home   father          3         1        0        no    yes
## 474     course   mother          2         1        0        no    yes
## 475 reputation   father          3         1        0        no    yes
## 476     course   mother          2         3        0        no    yes
## 477       home   mother          1         1        0        no    yes
## 478     course   father          2         1        0        no    yes
## 479     course   father          2         2        3       yes    yes
## 480     course   mother          1         1        0        no    yes
## 481     course    other          1         1        1        no     no
## 482     course   mother          3         1        0        no    yes
## 483     course   mother          2         1        0        no    yes
## 484     course   father          3         2        0        no    yes
## 485       home   mother          1         1        0        no    yes
## 486     course   mother          2         2        0        no    yes
## 487     course   father          1         1        1        no    yes
## 488     course    other          2         3        2        no    yes
## 489     course   mother          1         3        1        no     no
## 490       home   mother          2         1        1        no     no
## 491     course   mother          2         1        1        no     no
## 492     course    other          2         2        1        no    yes
## 493     course   mother          1         2        0        no     no
## 494     course   father          2         1        0        no     no
## 495     course   mother          1         2        0        no     no
## 496 reputation   mother          1         1        0        no     no
## 497       home   mother          1         1        0        no    yes
## 498     course   mother          2         4        1        no    yes
## 499     course   mother          1         2        0        no    yes
## 500     course   mother          1         1        0        no    yes
## 501     course   father          1         1        1        no    yes
## 502     course   father          1         1        0        no     no
## 503      other   mother          3         4        1        no    yes
## 504     course    other          1         4        0       yes    yes
## 505       home   mother          1         3        0        no     no
## 506 reputation   mother          2         1        0        no    yes
## 507      other   mother          2         2        1        no     no
## 508     course   father          1         3        0        no    yes
## 509     course   mother          3         1        1        no    yes
## 510     course   father          3         2        0        no    yes
## 511 reputation   mother          2         2        0        no    yes
## 512      other   mother          2         2        0        no     no
## 513      other   mother          1         2        1        no    yes
## 514     course   mother          1         1        0        no     no
## 515     course   mother          1         1        0        no     no
## 516 reputation   mother          2         2        0       yes     no
## 517 reputation   father          1         2        0        no     no
## 518 reputation   mother          2         1        0        no     no
## 519 reputation   father          1         2        1        no    yes
## 520 reputation   mother          2         2        0        no     no
## 521      other   mother          3         2        0        no    yes
## 522      other   mother          2         2        0        no    yes
## 523     course   mother          1         2        0        no    yes
## 524       home   mother          1         4        0        no    yes
## 525      other   mother          3         2        0        no    yes
## 526       home   mother          1         3        0        no    yes
## 527      other   mother          1         1        0        no     no
## 528      other   mother          4         3        0        no     no
## 529      other   mother          1         1        0        no    yes
## 530      other   father          2         1        0        no    yes
## 531       home   mother          1         1        0        no    yes
## 532      other   mother          3         2        0        no     no
## 533      other   mother          2         2        0        no     no
## 534      other   mother          1         2        0        no     no
## 535      other   father          1         1        0        no    yes
## 536     course   mother          3         2        0        no    yes
## 537 reputation   mother          3         4        0        no    yes
## 538     course   mother          1         1        0        no     no
## 539     course   mother          1         3        0        no    yes
## 540       home   mother          2         2        0        no    yes
## 541       home   mother          2         1        0        no     no
## 542      other   mother          2         2        0       yes     no
## 543     course   mother          2         3        0        no    yes
## 544     course   father          3         1        3        no     no
## 545     course   father          2         1        0        no     no
## 546      other   mother          1         2        1        no    yes
## 547     course   father          1         2        0        no    yes
## 548      other   father          1         1        0        no     no
## 549      other   mother          1         2        0        no     no
## 550     course   mother          2         2        0       yes    yes
## 551     course   father          2         2        0        no    yes
## 552      other   father          2         2        0        no    yes
## 553      other   mother          1         2        2        no    yes
## 554       home   mother          1         1        0        no     no
## 555     course   father          2         1        0        no    yes
## 556       home   father          1         3        0       yes    yes
## 557     course   mother          1         1        0        no     no
## 558     course   mother          2         2        3        no    yes
## 559     course   mother          2         1        0        no     no
## 560     course    other          3         1        1       yes    yes
## 561     course   mother          2         1        0        no    yes
## 562     course   mother          2         2        0        no    yes
## 563     course   father          1         2        0        no     no
## 564     course   mother          1         1        1        no     no
## 565     course   father          2         1        0        no     no
## 566     course   mother          2         1        0        no     no
## 567     course    other          2         1        1        no    yes
## 568     course   mother          1         1        1        no     no
## 569     course   mother          2         1        3        no     no
## 570     course   mother          1         2        2        no    yes
## 571     course   mother          2         1        0        no    yes
## 572     course    other          2         1        3        no     no
## 573     course   mother          2         2        2        no    yes
## 574     course   mother          1         1        0        no    yes
## 575     course    other          2         1        1        no    yes
## 576     course   mother          1         1        0        no    yes
## 577     course   mother          2         1        0        no    yes
## 578       home    other          3         2        1        no     no
## 579     course   mother          2         2        1        no    yes
## 580     course   mother          1         1        0        no     no
## 581       home    other          3         1        1        no    yes
## 582     course   mother          2         2        2        no    yes
## 583     course   mother          1         1        0        no    yes
## 584      other   mother          2         1        1        no     no
## 585     course   mother          2         1        0        no    yes
## 586     course    other          2         3        0        no    yes
## 587       home   mother          1         2        0       yes    yes
## 588     course   mother          1         2        1        no    yes
## 589     course   mother          1         1        0        no    yes
## 590     course   father          1         1        0        no     no
## 591     course   mother          3         2        2        no     no
## 592 reputation   father          2         2        0        no     no
## 593     course   mother          2         1        0        no    yes
## 594 reputation   mother          2         2        0        no     no
## 595 reputation   mother          2         2        0        no     no
## 596 reputation   mother          1         1        0        no    yes
## 597     course   mother          2         2        0        no    yes
## 598     course   mother          3         2        1        no     no
## 599       home   mother          2         1        0        no    yes
## 600      other   mother          3         1        0        no    yes
## 601      other   father          3         1        0        no     no
## 602     course   mother          2         2        0        no    yes
## 603     course   father          2         3        0        no     no
## 604 reputation   mother          1         2        0        no     no
## 605     course   mother          3         2        1        no     no
## 606      other   father          2         1        1        no     no
## 607     course   father          2         4        0        no     no
## 608 reputation   mother          2         2        0        no     no
## 609     course   mother          1         2        0        no     no
## 610     course   father          2         2        0        no    yes
## 611     course    other          2         2        3        no    yes
## 612       home   mother          2         3        0        no     no
## 613       home   mother          2         2        1        no    yes
## 614     course   father          1         2        0        no    yes
## 615      other   father          2         2        0        no    yes
## 616 reputation   mother          2         2        0        no     no
## 617       home   father          2         1        0        no     no
## 618     course   father          2         3        0        no     no
## 619     course   mother          3         2        0        no     no
## 620      other   mother          2         2        0        no    yes
## 621     course   mother          1         2        0        no    yes
## 622     course   father          2         2        0        no     no
## 623     course   mother          2         2        0        no    yes
## 624      other   mother          2         3        0        no     no
## 625 reputation   mother          3         1        1        no    yes
## 626     course   father          2         1        0        no    yes
## 627      other   father          3         2        0        no    yes
## 628      other   father          3         1        0        no    yes
## 629       home   mother          1         3        0        no     no
## 630     course   mother          1         1        0        no     no
## 631 reputation   mother          2         3        0        no     no
## 632       home   mother          4         3        0        no     no
## 633     course    other          2         2        1        no    yes
## 634     course   mother          1         2        0        no     no
## 635       home   mother          1         2        0        no     no
## 636 reputation   mother          1         2        0        no    yes
## 637       home   father          1         2        0        no     no
## 638      other   mother          2         1        0        no     no
## 639       home   father          2         2        0        no     no
## 640      other   mother          2         1        1        no     no
## 641       home   father          2         1        1        no     no
## 642      other   mother          2         3        0        no     no
## 643      other   mother          2         2        0        no     no
## 644 reputation   mother          3         1        0        no    yes
## 645     course   mother          1         3        1        no     no
## 646     course   mother          1         2        0        no    yes
## 647     course   mother          2         2        0        no     no
## 648     course   mother          2         1        0        no     no
## 649     course   mother          3         1        0        no     no
##     fatherd activities nursery higher internet romantic famrel freetime
## 1        no         no     yes    yes       no       no      4        3
## 2        no         no      no    yes      yes       no      5        3
## 3        no         no     yes    yes      yes       no      4        3
## 4        no        yes     yes    yes      yes      yes      3        2
## 5        no         no     yes    yes       no       no      4        3
## 6        no        yes     yes    yes      yes       no      5        4
## 7        no         no     yes    yes      yes       no      4        4
## 8        no         no     yes    yes       no       no      4        1
## 9        no         no     yes    yes      yes       no      4        2
## 10       no        yes     yes    yes      yes       no      5        5
## 11       no         no     yes    yes      yes       no      3        3
## 12       no        yes     yes    yes      yes       no      5        2
## 13       no        yes     yes    yes      yes       no      4        3
## 14       no         no     yes    yes      yes       no      5        4
## 15       no         no     yes    yes      yes      yes      4        5
## 16       no         no     yes    yes      yes       no      4        4
## 17       no        yes     yes    yes      yes       no      3        2
## 18       no        yes     yes    yes       no       no      5        3
## 19      yes        yes     yes    yes      yes       no      5        5
## 20       no        yes     yes    yes      yes       no      3        1
## 21       no         no     yes    yes      yes       no      4        4
## 22      yes         no     yes    yes      yes       no      5        4
## 23       no        yes     yes    yes      yes       no      4        5
## 24       no        yes     yes    yes      yes       no      5        4
## 25       no        yes     yes    yes      yes       no      4        3
## 26       no         no      no    yes      yes       no      1        2
## 27       no         no     yes    yes      yes       no      4        2
## 28       no         no     yes    yes      yes       no      2        2
## 29      yes        yes     yes    yes      yes       no      5        3
## 30      yes        yes     yes    yes      yes      yes      4        4
## 31      yes         no      no    yes      yes       no      5        4
## 32       no        yes     yes    yes      yes       no      4        3
## 33       no        yes     yes    yes      yes      yes      4        5
## 34       no        yes      no    yes      yes       no      5        3
## 35       no         no      no    yes      yes       no      5        4
## 36       no        yes     yes    yes       no       no      3        5
## 37       no        yes     yes    yes      yes       no      5        4
## 38       no        yes     yes    yes      yes      yes      2        4
## 39       no        yes     yes    yes      yes       no      4        3
## 40       no        yes     yes    yes       no       no      4        3
## 41       no        yes      no    yes      yes      yes      3        3
## 42       no         no      no    yes      yes      yes      5        4
## 43       no        yes     yes    yes      yes       no      4        3
## 44       no         no     yes    yes      yes       no      5        4
## 45       no        yes     yes    yes      yes       no      4        3
## 46      yes        yes     yes    yes      yes      yes      5        2
## 47       no         no     yes    yes      yes       no      2        3
## 48       no        yes     yes    yes      yes       no      4        2
## 49       no         no     yes    yes       no       no      4        3
## 50       no        yes      no    yes      yes       no      4        4
## 51       no         no     yes    yes      yes       no      4        3
## 52       no         no     yes    yes      yes       no      4        3
## 53       no         no     yes    yes       no       no      5        5
## 54       no         no     yes    yes      yes       no      3        3
## 55       no         no     yes    yes      yes       no      5        3
## 56       no        yes     yes    yes      yes      yes      5        3
## 57       no        yes     yes    yes      yes       no      4        3
## 58       no        yes     yes    yes       no       no      3        2
## 59       no        yes     yes    yes      yes       no      4        3
## 60      yes         no     yes    yes      yes       no      4        2
## 61       no        yes     yes    yes       no       no      2        4
## 62       no        yes      no    yes      yes      yes      5        5
## 63       no        yes     yes    yes      yes       no      4        4
## 64       no        yes     yes    yes      yes       no      3        4
## 65       no        yes     yes    yes      yes      yes      4        4
## 66       no        yes     yes    yes      yes       no      5        4
## 67       no        yes      no    yes      yes      yes      1        3
## 68       no         no     yes    yes      yes       no      4        3
## 69       no         no     yes    yes      yes       no      4        1
## 70       no         no      no    yes      yes       no      4        4
## 71       no         no     yes    yes      yes       no      4        3
## 72       no         no     yes    yes      yes       no      3        3
## 73       no         no      no    yes      yes      yes      3        3
## 74       no        yes     yes    yes       no       no      5        3
## 75       no        yes     yes    yes      yes       no      4        3
## 76       no        yes     yes    yes      yes       no      4        3
## 77       no        yes     yes    yes      yes       no      3        4
## 78       no         no     yes    yes      yes      yes      5        2
## 79       no        yes     yes     no      yes       no      4        5
## 80       no         no     yes    yes      yes       no      2        4
## 81       no        yes      no    yes      yes      yes      3        2
## 82       no         no      no    yes      yes       no      5        3
## 83       no         no     yes    yes      yes       no      4        4
## 84      yes        yes     yes    yes      yes       no      5        3
## 85       no        yes      no    yes      yes       no      4        3
## 86       no         no     yes    yes      yes      yes      4        4
## 87       no         no     yes    yes       no       no      4        3
## 88       no        yes     yes    yes      yes       no      5        3
## 89       no        yes      no    yes      yes       no      4        4
## 90       no         no     yes    yes       no       no      4        1
## 91       no         no     yes    yes      yes      yes      4        3
## 92       no        yes     yes    yes      yes       no      4        5
## 93       no         no     yes    yes       no       no      3        3
## 94       no        yes     yes    yes      yes       no      5        3
## 95       no        yes     yes    yes      yes       no      4        3
## 96      yes        yes     yes    yes      yes       no      3        1
## 97      yes        yes      no    yes      yes       no      3        3
## 98       no         no     yes    yes       no      yes      4        3
## 99       no        yes      no    yes      yes       no      5        3
## 100      no         no     yes    yes      yes       no      5        3
## 101      no        yes     yes    yes      yes       no      4        5
## 102      no        yes     yes    yes      yes      yes      4        4
## 103     yes        yes      no    yes      yes       no      5        3
## 104      no         no     yes    yes      yes       no      4        3
## 105      no        yes     yes    yes      yes       no      5        4
## 106      no         no     yes    yes       no       no      4        3
## 107      no         no     yes    yes      yes       no      5        1
## 108      no        yes     yes    yes      yes       no      5        3
## 109      no        yes     yes    yes      yes      yes      1        3
## 110      no        yes     yes    yes      yes      yes      5        4
## 111      no        yes     yes    yes      yes       no      5        5
## 112      no        yes     yes    yes      yes       no      4        1
## 113      no        yes     yes    yes      yes       no      3        1
## 114      no         no     yes    yes      yes       no      3        5
## 115      no        yes     yes    yes      yes      yes      5        4
## 116      no        yes     yes    yes      yes       no      5        4
## 117      no        yes     yes    yes       no       no      4        4
## 118      no        yes     yes    yes      yes       no      5        4
## 119      no        yes     yes    yes      yes       no      5        2
## 120      no         no     yes    yes      yes       no      3        4
## 121      no         no      no    yes      yes       no      3        2
## 122      no        yes     yes    yes      yes       no      5        5
## 123      no        yes     yes    yes      yes      yes      4        2
## 124      no        yes     yes    yes      yes       no      3        4
## 125      no         no     yes    yes      yes      yes      5        4
## 126      no         no     yes    yes      yes       no      5        5
## 127      no        yes     yes    yes      yes      yes      5        3
## 128      no         no      no     no       no       no      3        4
## 129      no        yes     yes    yes      yes       no      3        5
## 130      no         no      no    yes      yes      yes      3        2
## 131      no         no     yes    yes      yes      yes      4        2
## 132      no        yes     yes     no      yes      yes      5        4
## 133      no         no     yes    yes      yes       no      3        2
## 134      no        yes      no    yes      yes      yes      4        3
## 135      no         no     yes    yes      yes      yes      3        4
## 136      no         no     yes    yes      yes       no      3        2
## 137      no         no     yes    yes       no       no      3        2
## 138      no         no     yes    yes       no       no      5        3
## 139      no         no     yes    yes       no      yes      5        3
## 140      no        yes     yes    yes      yes      yes      4        3
## 141      no         no     yes    yes       no       no      5        4
## 142      no         no     yes    yes       no       no      5        1
## 143      no        yes     yes    yes      yes      yes      3        3
## 144      no        yes      no    yes      yes      yes      4        3
## 145      no        yes     yes    yes       no      yes      3        3
## 146      no        yes      no    yes      yes      yes      4        3
## 147      no         no     yes    yes       no      yes      4        4
## 148      no        yes     yes    yes      yes       no      4        3
## 149      no        yes     yes    yes      yes      yes      5        5
## 150      no         no     yes    yes      yes       no      2        2
## 151      no         no      no    yes       no      yes      1        3
## 152      no        yes     yes    yes      yes       no      5        3
## 153      no        yes     yes    yes      yes       no      2        3
## 154      no        yes     yes    yes      yes       no      4        2
## 155      no         no     yes    yes      yes       no      3        4
## 156      no         no     yes    yes      yes       no      5        4
## 157      no         no     yes    yes      yes       no      4        4
## 158      no        yes     yes     no      yes      yes      4        4
## 159      no         no     yes    yes      yes       no      3        3
## 160      no         no      no    yes      yes       no      4        3
## 161      no         no      no    yes       no      yes      2        3
## 162      no         no     yes     no      yes      yes      3        3
## 163      no         no     yes    yes      yes       no      4        5
## 164      no         no     yes     no      yes      yes      2        3
## 165      no        yes     yes    yes       no      yes      4        4
## 166     yes        yes     yes    yes      yes      yes      4        2
## 167      no         no     yes     no      yes      yes      4        5
## 168      no         no     yes    yes       no      yes      4        2
## 169     yes        yes     yes    yes       no       no      4        4
## 170      no         no     yes    yes       no       no      2        2
## 171      no        yes      no    yes       no       no      5        2
## 172      no         no      no    yes       no       no      4        2
## 173      no         no     yes    yes      yes      yes      4        5
## 174      no         no      no    yes      yes       no      4        4
## 175     yes        yes     yes     no      yes      yes      3        3
## 176      no         no     yes    yes      yes      yes      4        4
## 177      no        yes     yes    yes       no       no      4        4
## 178      no         no     yes     no      yes       no      5        3
## 179      no        yes     yes     no       no      yes      5        3
## 180      no        yes      no     no       no       no      4        5
## 181      no         no     yes     no      yes       no      4        3
## 182      no         no     yes    yes      yes      yes      4        2
## 183      no         no      no    yes      yes       no      5        1
## 184      no         no     yes    yes      yes      yes      4        4
## 185      no        yes      no    yes      yes       no      3        4
## 186      no        yes     yes    yes      yes      yes      4        3
## 187      no        yes     yes    yes      yes       no      4        4
## 188      no        yes      no    yes      yes      yes      4        3
## 189      no        yes     yes    yes      yes       no      4        4
## 190      no        yes     yes    yes      yes       no      4        4
## 191      no        yes      no    yes      yes       no      3        4
## 192      no        yes      no    yes      yes       no      4        3
## 193      no        yes     yes    yes      yes      yes      4        3
## 194     yes        yes     yes    yes      yes      yes      5        2
## 195     yes        yes     yes    yes      yes       no      3        4
## 196      no        yes     yes    yes      yes      yes      4        2
## 197      no        yes     yes    yes       no       no      5        4
## 198      no        yes     yes    yes      yes      yes      5        3
## 199      no         no     yes    yes      yes       no      1        2
## 200      no        yes     yes    yes      yes      yes      4        3
## 201      no        yes     yes    yes      yes      yes      3        3
## 202      no        yes     yes    yes      yes      yes      4        2
## 203      no         no      no    yes      yes      yes      3        3
## 204      no         no     yes    yes       no       no      3        1
## 205      no         no     yes    yes      yes       no      4        3
## 206      no        yes     yes    yes      yes       no      5        3
## 207      no        yes      no    yes      yes       no      4        4
## 208      no        yes     yes    yes      yes       no      4        3
## 209      no         no     yes    yes      yes       no      5        3
## 210      no        yes     yes    yes      yes      yes      4        3
## 211      no         no     yes    yes      yes       no      5        2
## 212      no        yes     yes    yes      yes       no      3        3
## 213      no         no     yes    yes      yes       no      4        2
## 214      no         no     yes    yes      yes       no      4        5
## 215      no        yes     yes    yes      yes       no      4        3
## 216      no        yes     yes    yes       no       no      4        4
## 217      no         no      no    yes       no       no      4        4
## 218      no         no     yes    yes      yes       no      5        3
## 219      no        yes      no    yes      yes       no      5        3
## 220     yes         no     yes    yes      yes      yes      4        4
## 221      no         no     yes    yes      yes       no      2        3
## 222      no        yes     yes    yes      yes      yes      1        3
## 223      no         no     yes    yes       no       no      4        3
## 224      no        yes     yes    yes      yes      yes      4        4
## 225      no        yes     yes    yes      yes       no      4        3
## 226      no         no     yes    yes      yes      yes      5        3
## 227      no         no     yes    yes      yes       no      3        3
## 228      no        yes     yes    yes      yes       no      4        4
## 229      no         no     yes    yes       no       no      5        2
## 230      no         no     yes    yes      yes       no      4        4
## 231      no         no     yes    yes      yes      yes      3        4
## 232      no         no     yes    yes      yes       no      3        2
## 233      no         no     yes    yes       no       no      3        3
## 234      no        yes     yes    yes      yes       no      4        3
## 235      no        yes     yes    yes      yes       no      4        2
## 236      no        yes     yes    yes       no      yes      4        3
## 237      no         no     yes    yes      yes       no      2        3
## 238     yes         no     yes    yes      yes       no      3        3
## 239      no        yes      no    yes      yes       no      5        3
## 240      no        yes     yes    yes      yes      yes      5        3
## 241      no        yes      no    yes      yes       no      5        3
## 242      no         no      no    yes      yes       no      5        3
## 243      no        yes     yes    yes      yes      yes      4        3
## 244      no        yes     yes    yes      yes      yes      3        2
## 245      no        yes     yes    yes      yes      yes      3        2
## 246      no        yes     yes    yes      yes       no      4        5
## 247      no        yes     yes    yes      yes      yes      4        5
## 248      no        yes     yes    yes      yes       no      4        2
## 249      no         no     yes    yes      yes       no      3        4
## 250      no        yes     yes    yes      yes      yes      5        3
## 251      no        yes      no    yes      yes      yes      4        4
## 252      no         no     yes    yes      yes      yes      4        5
## 253      no        yes     yes    yes      yes      yes      5        3
## 254      no         no     yes    yes      yes       no      4        3
## 255      no         no      no    yes      yes      yes      5        3
## 256      no         no     yes     no      yes       no      4        1
## 257      no        yes      no     no      yes      yes      4        4
## 258      no        yes      no    yes      yes       no      4        2
## 259      no        yes     yes    yes       no       no      5        4
## 260      no        yes     yes    yes      yes      yes      4        3
## 261      no         no     yes     no      yes       no      5        3
## 262      no        yes     yes    yes       no       no      2        1
## 263      no         no     yes    yes      yes       no      5        5
## 264      no         no     yes     no      yes       no      5        5
## 265      no         no      no     no      yes       no      3        1
## 266      no        yes     yes    yes      yes       no      4        3
## 267      no        yes     yes    yes       no       no      4        3
## 268      no        yes     yes    yes      yes      yes      2        5
## 269      no         no     yes    yes      yes       no      3        3
## 270      no        yes      no    yes      yes       no      5        4
## 271     yes        yes     yes    yes      yes       no      5        3
## 272     yes         no     yes    yes      yes      yes      5        3
## 273      no         no      no    yes      yes      yes      4        3
## 274      no         no     yes    yes      yes      yes      4        2
## 275      no         no      no    yes       no      yes      4        3
## 276      no         no      no    yes      yes      yes      4        4
## 277      no         no     yes    yes      yes       no      4        3
## 278      no         no     yes    yes       no       no      4        3
## 279      no         no     yes    yes      yes       no      5        2
## 280      no         no      no     no      yes      yes      5        4
## 281      no         no     yes    yes      yes      yes      4        3
## 282      no         no      no    yes      yes       no      4        3
## 283      no         no     yes     no      yes       no      4        4
## 284      no         no      no    yes      yes       no      5        3
## 285      no         no      no     no      yes       no      3        2
## 286      no        yes      no    yes       no       no      3        3
## 287      no         no      no    yes      yes       no      4        4
## 288      no        yes     yes    yes      yes       no      4        4
## 289      no         no      no    yes      yes      yes      4        3
## 290      no        yes     yes    yes      yes       no      4        2
## 291      no         no     yes    yes      yes       no      4        3
## 292      no        yes      no     no      yes       no      4        4
## 293      no        yes     yes    yes      yes       no      4        3
## 294      no         no      no    yes       no       no      4        4
## 295      no         no     yes    yes       no       no      3        2
## 296      no         no     yes    yes      yes       no      4        3
## 297      no        yes     yes    yes      yes       no      5        2
## 298      no         no      no     no       no       no      5        2
## 299      no        yes     yes    yes      yes      yes      3        4
## 300     yes        yes     yes     no      yes      yes      1        2
## 301      no         no     yes    yes      yes      yes      3        1
## 302      no         no      no    yes      yes       no      4        3
## 303      no        yes      no    yes       no       no      5        3
## 304      no        yes      no    yes       no       no      3        2
## 305      no        yes     yes    yes      yes      yes      4        3
## 306      no         no     yes     no      yes       no      4        4
## 307      no        yes     yes    yes      yes       no      4        2
## 308      no        yes     yes    yes      yes      yes      5        4
## 309      no        yes     yes    yes      yes       no      4        3
## 310      no        yes     yes    yes      yes      yes      5        4
## 311      no         no     yes     no      yes      yes      4        3
## 312      no        yes     yes    yes      yes       no      4        3
## 313      no        yes     yes    yes      yes      yes      4        5
## 314      no         no      no    yes       no       no      4        4
## 315      no        yes      no    yes       no      yes      3        5
## 316      no         no     yes    yes      yes      yes      4        2
## 317      no         no     yes    yes      yes      yes      4        3
## 318      no         no     yes    yes      yes      yes      4        4
## 319      no         no      no     no      yes      yes      4        1
## 320      no        yes     yes    yes      yes       no      3        2
## 321      no        yes     yes    yes      yes      yes      2        4
## 322      no         no     yes    yes      yes      yes      4        2
## 323      no         no     yes     no      yes       no      3        3
## 324      no        yes     yes    yes      yes       no      4        2
## 325      no         no      no     no      yes       no      3        4
## 326      no        yes     yes    yes      yes      yes      4        5
## 327      no         no     yes    yes      yes       no      4        4
## 328      no        yes     yes    yes       no       no      5        2
## 329      no        yes     yes    yes      yes       no      5        4
## 330      no         no      no    yes      yes       no      5        4
## 331      no        yes     yes    yes      yes      yes      4        3
## 332      no         no      no    yes      yes       no      4        3
## 333      no         no     yes    yes      yes       no      4        3
## 334      no         no     yes    yes      yes       no      4        3
## 335      no        yes     yes    yes      yes       no      4        2
## 336      no        yes     yes    yes      yes       no      5        4
## 337      no        yes     yes    yes      yes      yes      4        3
## 338      no         no     yes    yes      yes       no      4        2
## 339      no         no     yes    yes       no       no      3        1
## 340      no        yes     yes    yes      yes       no      5        4
## 341      no         no     yes    yes      yes       no      4        4
## 342      no        yes     yes    yes      yes       no      2        3
## 343      no         no     yes    yes      yes      yes      4        4
## 344      no         no     yes    yes      yes       no      4        3
## 345      no         no     yes    yes      yes      yes      1        4
## 346     yes         no     yes    yes      yes      yes      4        2
## 347      no         no     yes    yes      yes       no      4        1
## 348      no        yes     yes    yes      yes       no      5        3
## 349      no         no     yes    yes      yes       no      4        3
## 350      no        yes      no    yes      yes       no      5        2
## 351      no        yes     yes    yes      yes      yes      4        3
## 352      no        yes     yes    yes       no       no      5        5
## 353      no        yes     yes    yes       no      yes      4        5
## 354      no         no      no    yes       no      yes      3        4
## 355      no        yes     yes    yes      yes       no      5        3
## 356      no        yes     yes    yes      yes      yes      4        2
## 357      no        yes     yes    yes      yes       no      4        4
## 358      no        yes     yes    yes      yes      yes      4        3
## 359      no         no     yes    yes      yes       no      3        2
## 360      no        yes      no    yes      yes       no      4        3
## 361      no         no     yes    yes      yes       no      4        1
## 362      no        yes     yes    yes      yes      yes      5        4
## 363      no         no     yes    yes      yes       no      4        4
## 364      no        yes     yes    yes      yes      yes      5        4
## 365      no        yes     yes    yes      yes       no      5        3
## 366      no         no     yes    yes      yes      yes      5        2
## 367      no         no     yes    yes      yes       no      5        3
## 368      no        yes     yes    yes      yes       no      4        2
## 369      no         no     yes    yes      yes       no      4        2
## 370      no        yes     yes     no       no      yes      1        5
## 371      no         no      no    yes      yes      yes      5        3
## 372      no        yes     yes    yes      yes      yes      4        3
## 373      no         no     yes    yes       no      yes      4        2
## 374      no        yes     yes    yes      yes       no      3        3
## 375      no         no      no    yes      yes       no      3        4
## 376      no         no     yes    yes      yes       no      3        3
## 377      no        yes     yes    yes      yes       no      4        5
## 378      no        yes     yes    yes      yes       no      4        3
## 379      no        yes      no    yes      yes       no      4        3
## 380      no         no     yes    yes      yes       no      4        4
## 381      no        yes     yes    yes      yes       no      5        4
## 382      no         no      no    yes      yes      yes      4        3
## 383     yes        yes     yes    yes      yes       no      4        2
## 384     yes        yes     yes    yes      yes       no      4        5
## 385      no         no      no    yes       no      yes      5        3
## 386      no        yes     yes    yes       no      yes      4        2
## 387      no         no     yes    yes      yes      yes      4        4
## 388      no         no      no    yes      yes       no      5        4
## 389      no        yes     yes    yes      yes       no      5        3
## 390      no        yes      no    yes      yes      yes      4        3
## 391      no        yes     yes    yes       no       no      4        4
## 392      no         no     yes    yes      yes       no      4        4
## 393      no         no     yes    yes      yes      yes      4        3
## 394      no         no     yes    yes      yes       no      5        3
## 395      no         no     yes    yes      yes       no      4        3
## 396      no        yes     yes    yes      yes       no      4        3
## 397      no        yes     yes    yes      yes      yes      4        3
## 398      no         no     yes    yes      yes      yes      3        3
## 399      no         no     yes    yes      yes       no      4        3
## 400      no         no     yes    yes      yes      yes      5        4
## 401      no         no     yes    yes      yes      yes      5        3
## 402      no         no     yes    yes      yes      yes      5        4
## 403      no        yes     yes    yes      yes      yes      4        4
## 404      no        yes     yes    yes      yes      yes      4        3
## 405      no        yes     yes    yes      yes       no      4        3
## 406      no         no     yes     no      yes       no      2        2
## 407     yes         no     yes    yes      yes      yes      4        1
## 408     yes        yes     yes    yes      yes       no      3        3
## 409      no        yes      no     no      yes       no      4        4
## 410      no        yes     yes    yes      yes      yes      4        3
## 411      no        yes     yes    yes      yes       no      4        3
## 412      no         no     yes    yes      yes       no      4        4
## 413      no        yes     yes    yes      yes       no      4        2
## 414      no        yes     yes     no      yes      yes      5        3
## 415      no         no     yes    yes      yes      yes      3        2
## 416      no         no     yes    yes      yes      yes      3        2
## 417      no         no     yes    yes      yes       no      4        4
## 418      no         no     yes    yes      yes      yes      4        3
## 419      no         no     yes    yes      yes       no      3        1
## 420      no         no     yes    yes      yes       no      5        3
## 421      no         no     yes    yes      yes       no      4        1
## 422      no         no     yes    yes      yes      yes      5        3
## 423      no        yes      no    yes      yes      yes      3        1
## 424      no         no     yes     no      yes      yes      4        3
## 425      no        yes     yes    yes      yes       no      4        4
## 426      no         no     yes    yes       no      yes      4        1
## 427      no         no     yes    yes      yes       no      5        4
## 428      no         no     yes    yes       no       no      4        5
## 429      no         no     yes     no       no       no      1        3
## 430      no         no     yes    yes       no       no      5        3
## 431      no         no     yes    yes      yes       no      4        4
## 432      no         no     yes    yes       no      yes      4        5
## 433      no         no      no     no      yes       no      5        4
## 434      no         no     yes    yes      yes      yes      1        5
## 435      no        yes      no     no       no      yes      1        2
## 436      no         no     yes    yes      yes       no      5        4
## 437      no         no     yes    yes      yes      yes      4        4
## 438      no        yes     yes    yes       no       no      3        2
## 439      no         no     yes    yes      yes       no      5        5
## 440      no         no      no    yes      yes       no      4        1
## 441      no        yes     yes    yes       no      yes      5        4
## 442     yes         no      no    yes      yes       no      4        4
## 443      no        yes     yes    yes      yes       no      5        3
## 444      no        yes     yes    yes      yes       no      5        3
## 445      no         no      no    yes       no       no      3        4
## 446      no        yes     yes    yes       no      yes      5        4
## 447      no        yes     yes    yes      yes       no      5        3
## 448      no        yes     yes     no       no      yes      5        5
## 449      no        yes     yes    yes      yes      yes      4        2
## 450      no         no     yes    yes       no       no      5        1
## 451      no         no     yes    yes      yes       no      4        5
## 452      no         no     yes    yes       no       no      4        3
## 453      no         no     yes    yes      yes       no      4        4
## 454      no         no     yes    yes       no       no      1        3
## 455      no         no     yes    yes       no       no      1        3
## 456      no         no      no    yes      yes       no      4        4
## 457      no         no      no    yes       no      yes      5        4
## 458      no        yes     yes    yes      yes       no      5        5
## 459      no         no      no    yes      yes       no      4        3
## 460      no         no     yes    yes       no       no      4        4
## 461      no        yes     yes    yes      yes       no      4        3
## 462      no        yes     yes    yes      yes      yes      4        2
## 463      no         no     yes    yes       no       no      4        2
## 464      no         no     yes    yes       no       no      4        4
## 465      no        yes     yes    yes       no       no      3        4
## 466      no        yes     yes    yes      yes      yes      3        4
## 467      no         no     yes    yes       no       no      3        2
## 468      no        yes     yes    yes      yes       no      5        3
## 469      no         no     yes    yes       no       no      4        3
## 470      no        yes     yes    yes       no      yes      4        3
## 471      no         no     yes    yes      yes      yes      4        5
## 472      no        yes      no    yes       no       no      4        4
## 473      no        yes     yes    yes       no      yes      4        3
## 474      no        yes     yes    yes      yes       no      2        4
## 475      no        yes     yes    yes      yes       no      4        2
## 476      no        yes     yes    yes       no       no      5        3
## 477      no         no     yes    yes      yes      yes      5        4
## 478      no        yes      no    yes      yes       no      4        3
## 479      no         no     yes    yes       no       no      3        4
## 480      no        yes     yes     no       no       no      4        5
## 481      no         no     yes     no      yes      yes      4        4
## 482      no        yes     yes     no       no      yes      5        5
## 483      no         no     yes     no       no      yes      5        2
## 484      no         no     yes     no      yes       no      3        4
## 485      no         no     yes     no       no       no      4        3
## 486      no         no     yes    yes      yes       no      4        3
## 487     yes        yes      no    yes      yes       no      4        4
## 488      no         no      no     no       no      yes      3        3
## 489      no        yes     yes     no       no      yes      5        3
## 490      no        yes     yes     no      yes       no      4        4
## 491      no         no      no     no      yes      yes      3        2
## 492      no         no     yes    yes      yes      yes      1        1
## 493      no         no      no    yes       no      yes      3        3
## 494      no        yes      no    yes       no       no      2        4
## 495      no        yes     yes     no      yes       no      4        4
## 496      no        yes     yes     no      yes      yes      4        5
## 497      no        yes     yes    yes      yes      yes      4        4
## 498     yes        yes     yes    yes       no       no      5        4
## 499      no        yes     yes    yes      yes       no      5        3
## 500     yes        yes     yes    yes       no      yes      4        2
## 501      no        yes     yes     no      yes      yes      5        3
## 502      no        yes     yes    yes      yes       no      4        2
## 503      no         no     yes    yes       no       no      1        3
## 504      no        yes     yes    yes      yes       no      2        2
## 505      no         no     yes    yes      yes      yes      5        4
## 506      no        yes      no    yes      yes      yes      4        4
## 507      no        yes     yes    yes      yes      yes      3        3
## 508      no         no     yes    yes       no      yes      4        3
## 509      no         no      no    yes      yes       no      4        4
## 510      no         no     yes    yes       no       no      5        3
## 511      no        yes     yes    yes       no       no      5        3
## 512      no         no     yes    yes      yes      yes      4        4
## 513      no         no     yes    yes      yes      yes      4        3
## 514      no        yes     yes    yes      yes       no      3        1
## 515      no         no     yes    yes      yes       no      3        1
## 516      no         no     yes    yes       no       no      2        3
## 517      no        yes      no    yes      yes      yes      4        3
## 518      no        yes     yes    yes      yes       no      5        4
## 519      no         no     yes    yes      yes       no      2        3
## 520      no        yes     yes    yes      yes       no      5        2
## 521      no         no     yes    yes      yes       no      4        3
## 522      no        yes     yes    yes      yes       no      3        3
## 523      no         no     yes    yes      yes      yes      4        3
## 524      no        yes     yes     no      yes      yes      5        5
## 525      no         no      no    yes       no       no      4        2
## 526      no         no     yes    yes      yes       no      4        4
## 527      no         no     yes    yes      yes      yes      4        2
## 528      no         no     yes    yes       no       no      5        1
## 529     yes         no     yes    yes      yes       no      5        1
## 530      no         no     yes    yes       no       no      5        1
## 531      no        yes     yes    yes      yes       no      4        1
## 532      no         no     yes    yes      yes      yes      5        1
## 533      no         no      no    yes      yes      yes      4        2
## 534      no         no     yes    yes      yes      yes      3        2
## 535      no         no     yes    yes      yes       no      4        1
## 536      no        yes     yes    yes       no       no      5        5
## 537      no        yes     yes    yes       no       no      5        4
## 538      no        yes     yes    yes      yes       no      4        3
## 539      no         no      no    yes       no      yes      4        3
## 540      no        yes     yes    yes      yes       no      1        2
## 541      no         no     yes    yes       no      yes      4        3
## 542     yes         no     yes    yes       no       no      5        1
## 543      no         no     yes    yes      yes      yes      5        3
## 544      no        yes     yes    yes      yes      yes      3        3
## 545      no        yes     yes    yes       no      yes      5        1
## 546      no        yes      no    yes      yes      yes      5        4
## 547      no         no     yes    yes      yes       no      5        2
## 548      no         no     yes    yes      yes       no      4        1
## 549      no        yes     yes    yes      yes      yes      4        5
## 550      no         no      no    yes      yes       no      4        3
## 551      no         no      no    yes      yes      yes      4        1
## 552     yes         no     yes    yes      yes       no      4        1
## 553      no        yes     yes     no      yes       no      4        4
## 554      no         no     yes    yes       no      yes      4        1
## 555      no        yes     yes     no      yes      yes      3        5
## 556      no         no      no    yes      yes      yes      4        3
## 557      no         no     yes    yes       no       no      4        4
## 558      no        yes      no    yes      yes      yes      5        4
## 559      no        yes     yes     no       no      yes      5        5
## 560      no         no     yes    yes       no       no      4        3
## 561      no        yes      no    yes      yes      yes      4        5
## 562      no        yes     yes    yes       no       no      4        3
## 563      no        yes     yes    yes       no      yes      5        4
## 564      no        yes     yes    yes       no      yes      1        2
## 565      no         no     yes    yes      yes       no      4        5
## 566      no        yes     yes    yes      yes       no      4        5
## 567      no         no     yes     no      yes      yes      5        3
## 568      no         no     yes     no      yes       no      2        3
## 569      no        yes     yes    yes       no       no      3        2
## 570      no        yes     yes     no      yes       no      4        4
## 571      no        yes     yes    yes      yes      yes      5        4
## 572      no        yes      no     no      yes      yes      4        4
## 573      no        yes     yes    yes       no      yes      2        5
## 574      no        yes     yes    yes       no       no      4        3
## 575      no         no     yes     no      yes      yes      4        4
## 576      no         no     yes    yes      yes       no      5        4
## 577      no         no      no    yes      yes       no      2        5
## 578      no         no     yes    yes      yes       no      5        4
## 579      no         no     yes    yes      yes       no      4        5
## 580      no         no     yes     no      yes      yes      4        3
## 581      no         no     yes    yes      yes       no      4        4
## 582      no         no     yes    yes       no       no      4        3
## 583      no         no     yes     no       no       no      1        4
## 584      no         no     yes     no      yes      yes      5        5
## 585      no         no     yes    yes      yes       no      4        4
## 586     yes         no     yes     no       no       no      4        2
## 587      no        yes     yes    yes      yes       no      5        5
## 588      no        yes     yes    yes      yes       no      2        3
## 589      no         no     yes    yes       no      yes      3        2
## 590      no         no     yes    yes      yes       no      5        5
## 591      no        yes     yes    yes       no      yes      3        4
## 592      no        yes      no    yes      yes       no      4        3
## 593      no         no     yes    yes      yes       no      4        4
## 594      no         no     yes    yes      yes       no      4        4
## 595      no        yes      no    yes      yes       no      4        3
## 596      no        yes     yes    yes      yes       no      5        4
## 597      no         no     yes    yes      yes       no      4        3
## 598      no        yes     yes    yes       no      yes      4        3
## 599      no         no      no    yes       no       no      4        1
## 600     yes        yes     yes    yes      yes      yes      2        5
## 601      no         no      no     no       no       no      4        2
## 602      no         no      no    yes      yes      yes      1        3
## 603      no         no     yes    yes      yes      yes      5        4
## 604      no        yes     yes    yes      yes      yes      5        3
## 605      no         no     yes     no       no       no      4        4
## 606      no         no     yes     no       no       no      5        5
## 607      no         no     yes    yes      yes      yes      4        2
## 608      no        yes     yes    yes      yes      yes      5        3
## 609      no         no     yes    yes       no      yes      5        2
## 610      no         no     yes     no       no       no      4        1
## 611      no        yes     yes     no       no      yes      3        5
## 612      no         no     yes    yes      yes      yes      4        2
## 613     yes        yes      no    yes      yes      yes      4        5
## 614      no         no     yes    yes       no      yes      5        3
## 615     yes        yes     yes    yes      yes       no      4        3
## 616      no         no     yes    yes       no      yes      1        2
## 617      no         no      no    yes      yes      yes      3        3
## 618      no         no     yes    yes      yes       no      5        3
## 619      no         no     yes    yes       no      yes      4        3
## 620      no         no     yes    yes      yes      yes      4        3
## 621      no        yes     yes    yes      yes      yes      2        3
## 622      no         no      no    yes       no       no      3        2
## 623     yes         no     yes    yes       no       no      3        3
## 624      no         no     yes    yes      yes      yes      4        2
## 625      no         no     yes    yes      yes      yes      5        2
## 626      no         no     yes    yes      yes      yes      5        2
## 627      no         no      no    yes      yes      yes      3        2
## 628      no        yes     yes     no      yes      yes      4        3
## 629      no        yes     yes    yes       no      yes      3        4
## 630      no        yes     yes    yes      yes       no      3        5
## 631      no         no     yes    yes      yes       no      5        4
## 632      no         no     yes    yes      yes       no      4        3
## 633      no         no     yes    yes      yes      yes      4        3
## 634      no        yes     yes    yes      yes       no      5        4
## 635      no         no     yes    yes      yes      yes      4        1
## 636      no        yes      no    yes      yes       no      4        5
## 637      no        yes      no    yes      yes       no      3        2
## 638      no        yes      no    yes      yes      yes      4        4
## 639      no        yes     yes    yes      yes       no      4        4
## 640      no         no     yes    yes       no       no      4        3
## 641     yes         no     yes    yes       no       no      5        4
## 642      no         no     yes    yes       no       no      5        3
## 643      no         no     yes    yes      yes       no      5        5
## 644      no        yes     yes    yes      yes      yes      4        4
## 645      no        yes      no    yes      yes       no      5        4
## 646      no         no     yes    yes      yes       no      4        3
## 647      no        yes     yes    yes       no       no      1        1
## 648      no         no      no    yes      yes       no      2        4
## 649      no         no      no    yes      yes       no      4        4
##     goout Dalc Walc health absences G1 G2 G3 studentgradefit.cluster
## 1       4    1    1      3        4  0 11 11                       1
## 2       3    1    1      3        2  9 11 11                       5
## 3       2    2    3      3        6 12 13 12                       3
## 4       2    1    1      5        0 14 14 14                       2
## 5       2    1    2      5        0 11 13 13                       3
## 6       2    1    2      5        6 12 12 13                       3
## 7       4    1    1      3        0 13 12 13                       3
## 8       4    1    1      1        2 10 13 13                       3
## 9       2    1    1      1        0 15 16 17                       4
## 10      1    1    1      5        0 12 12 13                       3
## 11      3    1    2      2        2 14 14 14                       2
## 12      2    1    1      4        0 10 12 13                       3
## 13      3    1    3      5        0 12 13 12                       3
## 14      3    1    2      3        0 12 12 13                       3
## 15      2    1    1      3        0 14 14 15                       2
## 16      4    1    2      2        6 17 17 17                       4
## 17      3    1    2      2       10 13 13 14                       3
## 18      2    1    1      4        2 13 14 14                       2
## 19      5    2    4      5        2  8  8  7                       1
## 20      3    1    3      5        6 12 12 12                       3
## 21      1    1    1      1        0 12 13 14                       3
## 22      2    1    1      5        0 11 12 12                       3
## 23      1    1    3      5        0 12 13 14                       3
## 24      4    2    4      5        2 10 10 10                       5
## 25      2    1    1      5        2 10 11 10                       5
## 26      2    1    3      5        6 10 11 12                       5
## 27      2    1    2      5        8 11 12 12                       3
## 28      4    2    4      1        0 11 11 11                       5
## 29      3    1    1      5        2 12 12 13                       3
## 30      5    5    5      5        4 12 11 12                       3
## 31      2    3    4      5        0 10 11 11                       5
## 32      1    1    1      5        2 15 15 15                       2
## 33      2    1    1      5        0 13 14 15                       2
## 34      2    1    1      2        0 13 12 12                       3
## 35      3    1    1      5        4 12 12 12                       3
## 36      1    1    1      5        4 11 11 11                       5
## 37      3    1    1      4        0 14 14 14                       2
## 38      3    1    1      5        4 13 13 13                       3
## 39      2    1    1      5        2 11 12 12                       3
## 40      1    1    1      2        8 14 13 12                       3
## 41      3    1    2      3       16 11 11 10                       5
## 42      3    2    4      5        8 10 11 11                       5
## 43      3    1    1      5        0 14 15 15                       2
## 44      1    1    1      1        0  9 10 10                       5
## 45      3    2    2      5       14 10 11 11                       5
## 46      2    1    1      5        4 10 11 11                       5
## 47      5    1    4      3        6 13 12 13                       3
## 48      2    1    1      2        2 17 17 17                       4
## 49      3    2    2      5        4 11 12 13                       3
## 50      4    1    1      3        2 13 12 12                       3
## 51      3    2    3      4        0 14 13 13                       3
## 52      3    1    1      5        0 16 14 16                       2
## 53      5    3    4      5        4 10  9  9                       5
## 54      4    2    3      5        0 13 12 12                       3
## 55      4    4    4      1        0 13 12 13                       3
## 56      4    1    1      2        2 12 13 12                       3
## 57      2    1    1      1        0 15 14 15                       2
## 58      2    1    1      5        8 15 15 16                       2
## 59      2    1    1      5        0 14 13 14                       2
## 60      3    1    1      5        2 16 15 16                       2
## 61      4    2    3      4        0 17 16 16                       4
## 62      5    5    5      5        0 10 10 16                       3
## 63      3    1    1      1        0 13 13 10                       3
## 64      4    2    4      4        0 14 13 13                       3
## 65      4    2    4      2        0 13 12 12                       3
## 66      3    1    2      1        2 16 15 16                       2
## 67      3    5    5      3        0 11 12 12                       3
## 68      3    1    2      5        0 10  9 10                       5
## 69      3    1    3      4        0 11 10 11                       5
## 70      2    2    3      3        6 15 15 15                       2
## 71      2    1    1      5        2 13 11 11                       3
## 72      3    1    1      3        0 11  9 10                       5
## 73      4    2    4      5        2 13 11 11                       3
## 74      2    2    2      5        0 13 13 14                       3
## 75      3    2    4      5        4 11 11 11                       5
## 76      3    2    3      5        0 11 11 11                       5
## 77      3    1    1      1        0 12 11 11                       3
## 78      3    1    3      3        1 13 13 13                       3
## 79      1    1    1      3        0  9  9 10                       5
## 80      3    1    2      3       14 12 11 11                       3
## 81      2    1    3      3        0 11 11 12                       3
## 82      2    1    2      5        2 10  9  9                       5
## 83      4    1    1      5        4 12 11 11                       3
## 84      3    1    3      4        2 13 12 13                       3
## 85      2    2    3      4        2 13 12 12                       3
## 86      4    2    3      5        4 12 11 12                       3
## 87      4    1    2      2        6 13 11 11                       3
## 88      3    1    3      1        4 15 15 15                       2
## 89      2    1    1      3        6 12 10 11                       5
## 90      3    3    5      5        6  9  9 10                       5
## 91      3    1    3      4        2  9 11 11                       5
## 92      5    1    3      1        6 14 13 13                       3
## 93      3    2    3      2        0 12 13 12                       3
## 94      3    1    1      1        2 13 14 14                       2
## 95      4    1    1      4        2 11 12 12                       3
## 96      2    1    1      1        4 13 13 13                       3
## 97      3    1    1      4        6  9 11 11                       5
## 98      5    1    1      5        0 13 12 12                       3
## 99      4    1    2      1        4 12 13 13                       3
## 100     5    1    1      3        2 12 13 13                       3
## 101     5    5    5      4       12  9  9  8                       5
## 102     3    1    1      4        0 16 16 16                       4
## 103     3    1    1      5        2 12 13 12                       3
## 104     5    1    1      2       16 11 10 10                       5
## 105     4    1    1      1        0 16 16 16                       4
## 106     3    1    1      4       10 10 10 10                       5
## 107     2    1    1      3        4 10 10 10                       5
## 108     3    1    1      5        4 13 14 14                       2
## 109     5    3    5      1        8 12 10 11                       5
## 110     5    1    1      4        2 15 15 14                       2
## 111     3    1    1      4        4 13 14 14                       2
## 112     2    1    1      2        4 11 11 11                       5
## 113     2    1    1      5       12  8 10 10                       5
## 114     2    1    1      3       10 18 17 18                       4
## 115     2    1    1      5        4 10  9 10                       5
## 116     4    1    2      5        6 16 14 14                       2
## 117     3    1    1      2        4 16 15 16                       2
## 118     2    1    1      5        6 14 14 15                       2
## 119     4    1    4      5       14 12 11 11                       3
## 120     3    1    2      4        2 14 13 14                       2
## 121     3    1    2      1        0 14 14 14                       2
## 122     4    1    2      5        6 14 13 13                       3
## 123     2    1    2      5        2 14 12 13                       3
## 124     4    1    4      5        4 12 13 13                       3
## 125     4    1    1      5        0 12 11 11                       3
## 126     5    3    2      5        2  9  9  9                       5
## 127     2    1    1      1        0 10 11 11                       5
## 128     2    1    1      5        0  9 10 11                       5
## 129     5    2    5      4        8 14 14 15                       2
## 130     3    2    2      1        4 13 12 13                       3
## 131     2    2    2      5        0 10 11 12                       5
## 132     5    1    3      5       10 10  9  8                       5
## 133     2    1    2      5        8 11 10 11                       5
## 134     3    1    2      4        6 11 12 13                       3
## 135     4    1    3      5        2 13 12 12                       3
## 136     1    1    4      5       12 15 13 14                       2
## 137     1    1    1      2        4  9  9 11                       5
## 138     4    1    1      5       12 13 11 11                       3
## 139     3    1    1      5        2 12 11 11                       3
## 140     3    1    1      5        4 13 14 15                       2
## 141     5    2    4      5        2 10  9 10                       5
## 142     3    1    1      3        0 14 13 13                       3
## 143     4    4    5      4        2 11 11 12                       3
## 144     3    5    1      5       10 12 11 11                       3
## 145     3    1    2      1        8 12 11 11                       3
## 146     2    1    1      5        4  9  9 10                       5
## 147     4    1    3      5        0 10 10 10                       5
## 148     2    1    1      5        6 13 14 14                       2
## 149     5    1    1      1        2  8  9  9                       5
## 150     2    1    1      3        6  9 11 11                       5
## 151     2    2    3      1       24  9  8  9                       5
## 152     3    1    3      5        0 15 13 13                       2
## 153     3    2    2      2        4 12 11 11                       3
## 154     2    1    1      5        2 13 13 13                       3
## 155     4    3    3      1        4 10 11 11                       5
## 156     5    1    2      5       22  9  7  6                       1
## 157     2    1    2      5        0 12 12 12                       3
## 158     2    1    1      5        0 11 10 10                       5
## 159     2    1    1      3        2 11 11 11                       5
## 160     2    1    1      5        6 13 12 13                       3
## 161     4    2    4      1        6 11 11 11                       5
## 162     2    2    1      5       16  9  9  8                       5
## 163     5    2    5      5        0 12 11 11                       3
## 164     5    2    5      4        0 11  9  0                       1
## 165     4    3    5      5        6  9 10 10                       5
## 166     1    2    3      3        2 13 13 13                       3
## 167     4    1    1      4        6 11  9 11                       5
## 168     1    1    1      4        0 13 13 13                       3
## 169     4    1    1      1        0  7  8  8                       1
## 170     2    3    3      5       14  9  8 10                       5
## 171     5    1    5      4        6 11 10 11                       5
## 172     2    1    2      3        4 12 10 11                       5
## 173     5    4    4      5        0 10 10  1                       1
## 174     5    3    5      5        0  9  8 10                       5
## 175     2    2    2      5        8  8  8  9                       5
## 176     4    1    4      3        4  7  6  8                       1
## 177     4    2    4      5        2  8  9 10                       5
## 178     3    1    4      2        2  9  8  8                       5
## 179     5    1    5      5        0  8  8  8                       1
## 180     2    1    1      2       10  8  7  8                       1
## 181     5    2    4      4        0  9 10 11                       5
## 182     3    1    1      3        0 17 17 18                       4
## 183     5    1    1      4        0 12 12 13                       3
## 184     2    1    1      3        0 16 16 17                       4
## 185     5    2    4      2        4  9  9 10                       5
## 186     2    1    1      3        0 16 17 18                       4
## 187     4    1    3      5        0 11  9 10                       5
## 188     5    1    1      3        0 14 13 13                       3
## 189     5    1    1      4        0 14 14 15                       2
## 190     4    4    4      4        0 10 11 11                       5
## 191     4    1    4      5        0 13 12 14                       3
## 192     4    1    4      4        4 11  9 10                       5
## 193     3    3    4      3        8 10  9 11                       5
## 194     3    1    1      2        4 11 11 13                       3
## 195     3    2    3      3        4 11 10 11                       5
## 196     3    1    2      3        0 11 12 13                       3
## 197     2    2    3      5        0 17 18 17                       4
## 198     3    2    3      1       32 14 13 14                       2
## 199     2    1    2      1        8 14 15 16                       2
## 200     4    2    3      4        6 11 13 14                       3
## 201     3    1    2      3        0 10  9 11                       5
## 202     3    1    2      5        0 13 14 16                       2
## 203     3    1    3      3       10 12 13 14                       3
## 204     3    1    5      3        6  9  9 10                       5
## 205     3    1    1      2        6 12 12 13                       3
## 206     3    1    1      3        0 12 11 12                       3
## 207     4    4    5      5       16 10 11 12                       5
## 208     2    3    4      5        0 11 10 10                       5
## 209     3    1    1      3        0 13 12 12                       3
## 210     2    1    1      5        8 14 15 16                       2
## 211     3    1    2      5        4 13 13 14                       3
## 212     4    3    5      3       16 10 11 12                       5
## 213     4    2    3      2       30 14 15 16                       2
## 214     2    1    2      3        0 11 10 11                       5
## 215     5    1    5      2        2 14 14 15                       2
## 216     3    1    3      4        4 11 12 12                       3
## 217     4    1    3      1        0 14 15 15                       2
## 218     2    1    2      3       21 13 13 13                       3
## 219     5    1    1      5        6 13 13 13                       3
## 220     3    3    4      5       14  8  9  8                       5
## 221     3    2    2      4        2 11 11 12                       3
## 222     2    1    1      1        4 14 15 15                       2
## 223     2    1    4      5        2 12 13 13                       3
## 224     2    1    1      4        0 11 12 12                       3
## 225     3    1    2      3        4 12 12 12                       3
## 226     5    4    5      3       15 13 12 12                       3
## 227     4    1    1      4        0 13 13 13                       3
## 228     4    2    4      5       10 12 11 11                       3
## 229     1    1    2      3        6 12 11 11                       3
## 230     4    1    3      1        2 14 16 15                       2
## 231     5    2    4      1       16 11  9 10                       5
## 232     4    2    4      4       10 10 10 10                       5
## 233     3    1    4      3        4 12 13 13                       3
## 234     3    1    1      4        0 12 12 13                       3
## 235     5    1    2      5        0 11 10 11                       5
## 236     4    1    1      5       12 12 12 12                       3
## 237     1    1    1      3        0 13 13 14                       3
## 238     3    5    5      4        9 10  9 10                       5
## 239     2    1    1      5        4 15 16 16                       2
## 240     3    1    1      4        4  8  8  8                       1
## 241     4    1    3      3        2 17 18 17                       4
## 242     3    1    3      3        0 10 11 11                       5
## 243     2    4    5      3        2  9 10 11                       5
## 244     3    1    2      3        0 15 15 16                       2
## 245     3    1    2      3        0 14 12 12                       3
## 246     2    1    1      1        0 12 13 13                       3
## 247     5    1    3      2        0 13 13 13                       3
## 248     4    2    4      1        0 13 13 14                       3
## 249     2    1    1      5        2  9  9  9                       5
## 250     3    1    3      2        0 12 12 12                       3
## 251     2    5    5      4        0 16 16 16                       4
## 252     2    1    1      5        4  9 10 10                       5
## 253     3    1    2      5        0 14 13 13                       3
## 254     3    1    1      3       18 10 10 10                       5
## 255     1    1    1      5       16  9  8 10                       5
## 256     1    1    1      3       14  8  7  7                       1
## 257     3    2    2      1       26  7  8  8                       1
## 258     1    1    2      5        6 10  8  9                       5
## 259     2    1    1      3        4 14 14 15                       2
## 260     2    1    2      4       10 11 10 10                       5
## 261     5    1    2      5        4 12 11 11                       3
## 262     1    1    1      3        2 13 13 13                       3
## 263     4    1    1      5       14  9  9  8                       5
## 264     4    3    5      2       16  8  7  8                       1
## 265     2    1    1      1        8 11  9 10                       5
## 266     3    1    3      5        4 15 14 15                       2
## 267     2    1    1      4        4 15 14 14                       2
## 268     5    1    4      5        8 15 15 15                       2
## 269     3    2    3      4        0 12 12 12                       3
## 270     5    1    1      3        7 14 14 15                       2
## 271     2    1    2      5        4 14 15 15                       2
## 272     1    1    4      5        2 11 11 12                       3
## 273     3    1    1      1        2 13 14 15                       2
## 274     2    2    3      5       10 11 11 11                       5
## 275     2    1    1      4       10 10  9 10                       5
## 276     4    1    1      3       10 12 10 11                       5
## 277     3    1    1      4        7 15 16 16                       2
## 278     4    1    2      5        4 11 10 11                       5
## 279     2    1    1      2        2  9 12 13                       5
## 280     5    5    5      1       12  7  8  5                       1
## 281     3    1    3      5        8 10  9 10                       5
## 282     2    2    4      5        0 11 12 11                       3
## 283     5    2    4      5        8  7  8  7                       1
## 284     3    1    3      2        4  9 11 10                       5
## 285     5    2    5      5        4  7  8  6                       1
## 286     2    1    3      3        2 14 13 12                       3
## 287     2    2    4      5        0 12 12 13                       3
## 288     4    1    2      5        0  9 10 10                       5
## 289     4    1    3      5        2 12 12 13                       3
## 290     3    1    1      4        2 14 15 17                       2
## 291     3    1    1      5        0 10 10 11                       5
## 292     5    4    4      5        4 11 10 11                       5
## 293     4    1    3      5        2 11 12 14                       3
## 294     3    2    3      3        4 11 12 14                       3
## 295     3    1    1      5        4 11 11 13                       3
## 296     1    1    1      1        4 11 13 14                       3
## 297     4    1    2      4        2 16 16 16                       4
## 298     2    1    1      4        0  9 10 10                       5
## 299     1    1    1      2        2 10 11 12                       5
## 300     3    1    2      2        8 10 12 12                       3
## 301     2    1    3      2        2 15 15 15                       2
## 302     2    1    1      3        2 10 10 11                       5
## 303     2    1    1      3        2 10 11 12                       5
## 304     3    1    1      4        2 15 12 13                       3
## 305     3    1    1      3        0 11 12 13                       3
## 306     4    2    3      4        8  8  8  9                       5
## 307     5    3    4      1        6 15 16 16                       2
## 308     4    3    4      5        0 11 11 14                       3
## 309     4    2    2      4        8 10 11 12                       5
## 310     5    1    3      5        4 10 12 14                       3
## 311     5    1    2      3       12  8  9 10                       5
## 312     5    3    3      5       16 11 12 12                       3
## 313     5    1    3      2       10 16 16 16                       4
## 314     3    1    1      3        2 13 13 13                       3
## 315     2    2    2      1        2 16 17 18                       4
## 316     5    1    2      1        8 14 14 15                       2
## 317     3    1    1      1        6 15 16 16                       2
## 318     4    2    3      5        6 12 12 12                       3
## 319     1    1    1      5       15 12  9 10                       5
## 320     4    1    4      3        6 11 12 12                       3
## 321     4    1    1      4        2 14 12 13                       3
## 322     3    1    1      1        8 13 15 15                       2
## 323     3    4    3      3        0  9  8 10                       5
## 324     3    1    2      1        0 10 10 10                       5
## 325     4    2    4      4       10 10 10 11                       5
## 326     4    2    4      5       22 11 11 10                       5
## 327     4    3    4      3       18 13 13 13                       3
## 328     2    1    1      3        2 17 17 18                       4
## 329     4    1    1      4        0 12 13 13                       3
## 330     5    1    2      5       12 12 12 14                       3
## 331     1    1    1      5       10 12 13 14                       3
## 332     3    1    2      4        0 12 12 12                       3
## 333     3    1    2      2        0 18 18 18                       4
## 334     3    1    1      3        0 13 13 14                       3
## 335     4    1    3      2        0 14 15 15                       2
## 336     3    1    1      2        0 17 17 17                       4
## 337     2    1    4      5        2 15 16 16                       2
## 338     2    1    2      3        0 17 18 18                       4
## 339     2    1    1      3        0 18 19 19                       4
## 340     2    1    1      4        0 14 15 15                       2
## 341     3    1    3      5        0 14 15 15                       2
## 342     4    2    3      2        2 14 13 13                       3
## 343     5    1    2      2        0 13 14 14                       2
## 344     3    1    1      3        0 16 17 17                       4
## 345     2    2    2      1        0 18 18 17                       4
## 346     4    1    1      4        0 14 15 15                       2
## 347     1    2    2      5        0 12 13 13                       3
## 348     4    1    1      5        0  7  7  8                       1
## 349     3    1    1      3        0 16 16 16                       4
## 350     2    1    2      5        0 18 18 18                       4
## 351     1    1    1      5        0  9 10 11                       5
## 352     3    1    1      5        0 14 15 15                       2
## 353     3    1    2      5        0 10 10 11                       5
## 354     4    1    2      5        2 10 10 11                       5
## 355     3    1    2      1        2 12 12 15                       3
## 356     1    1    1      3        2 11 12 14                       3
## 357     4    1    1      5        2 15 16 17                       4
## 358     4    1    1      5        2 14 15 17                       2
## 359     4    1    4      1        8 12 12 15                       3
## 360     4    2    5      5        2 15 15 17                       2
## 361     4    1    1      3        8 11 12 14                       3
## 362     4    1    1      1        9 11 10 10                       5
## 363     4    3    3      5        0 12 11 13                       3
## 364     4    1    1      1        4 11 12 14                       3
## 365     4    1    2      5        2 14 15 17                       2
## 366     2    1    2      5       14 15 14 17                       2
## 367     3    1    1      5        0 12 12 13                       3
## 368     3    2    2      2        2 11 12 14                       3
## 369     5    3    4      5        2  8  9 11                       5
## 370     5    4    3      5       12 10 10 11                       5
## 371     4    1    1      4        2  8  8  9                       5
## 372     5    2    4      5        2 10 10 10                       5
## 373     2    1    1      3        4 14 13 13                       3
## 374     2    2    2      3        0 11 11 10                       5
## 375     3    2    3      5        0 17 18 17                       4
## 376     3    2    3      2        0 14 14 15                       2
## 377     5    1    2      2        0 14 14 14                       2
## 378     3    2    2      3        0 13 14 13                       3
## 379     5    3    5      5        0 17 18 17                       4
## 380     5    5    5      4        2 11 10 10                       5
## 381     4    1    3      4        0 13 12 13                       3
## 382     3    1    2      4        4 15 14 15                       2
## 383     5    2    5      5        2 11 12 11                       3
## 384     5    2    4      5        0 11 11 12                       3
## 385     4    2    2      5        0 11 10 10                       5
## 386     5    1    1      2        2 10  9 10                       5
## 387     3    1    1      5        0 15 15 15                       2
## 388     2    1    2      5        6 15 14 15                       2
## 389     4    1    1      4        8 10 11 12                       5
## 390     3    1    1      2        0 10  9 12                       5
## 391     4    1    1      4        6 14 13 14                       2
## 392     5    1    3      5        8 11 13 14                       3
## 393     2    2    3      2        0 12 13 15                       3
## 394     3    1    1      1        4 14 14 15                       2
## 395     3    2    3      2        0 14 14 16                       2
## 396     3    2    2      2        0 12 12 13                       3
## 397     3    1    3      5        6 16 16 17                       4
## 398     1    1    2      4       18 10 12 14                       3
## 399     3    1    2      3        0 11 12 14                       3
## 400     3    2    3      1        4 14 16 17                       2
## 401     2    1    2      4        4 15 14 17                       2
## 402     5    2    3      5        0 14 13 14                       2
## 403     3    1    3      4        0 11 12 13                       3
## 404     4    2    2      1       10 12 15 15                       2
## 405     5    2    4      4        4 12 16 16                       2
## 406     3    3    4      5       16 10 11 11                       5
## 407     2    1    1      3        6 10 13 13                       3
## 408     2    1    1      5        0  9 12 12                       5
## 409     4    1    3      3       11  9 11 12                       5
## 410     5    1    4      2        9 13 14 15                       2
## 411     4    1    3      4        0 13 17 17                       2
## 412     2    1    2      4        2 12 15 15                       2
## 413     2    1    1      3        0 14 17 17                       4
## 414     3    5    2      4       21  9 10 10                       5
## 415     2    1    3      3        8 11 15 15                       2
## 416     5    4    4      5        5  9 10 11                       5
## 417     4    1    2      5       10 16 18 18                       4
## 418     4    1    2      2        5 14 17 17                       4
## 419     3    4    5      4       13 13 14 14                       2
## 420     4    1    4      4       10  7 11 11                       5
## 421     4    1    3      4       10 14 17 17                       4
## 422     1    1    1      5        5  8 10 10                       5
## 423     2    1    2      1        4 10 13 13                       3
## 424     3    1    3      5       11 10 11 11                       5
## 425     4    1    1      5        0 12 12 12                       3
## 426     3    1    1      2        6 10 10 10                       5
## 427     4    2    3      5        4 10 10 11                       5
## 428     2    1    2      5        0 16 17 17                       4
## 429     4    1    1      1        0  6  8  9                       1
## 430     2    1    3      2        5 10 11 11                       5
## 431     3    1    1      5        0 10 11 11                       5
## 432     4    1    2      5        0 10 10 10                       5
## 433     4    2    2      5        0  6  6  7                       1
## 434     1    3    5      5        0 13 14 14                       2
## 435     1    1    1      1        4 10  9 11                       5
## 436     3    1    2      4        0 10 10 10                       5
## 437     3    1    2      2        4  6  7  8                       1
## 438     3    1    2      2        0 12 11 12                       3
## 439     5    1    3      3        2 10 11 12                       5
## 440     3    1    1      4        0 14 16 16                       2
## 441     5    4    5      3        0  7  0  0                       1
## 442     3    2    4      5        4  8  9  9                       5
## 443     4    1    2      2        0 12 13 14                       3
## 444     4    1    2      2        7  7  9  8                       1
## 445     5    1    2      5        4  9 10 11                       5
## 446     5    2    4      4        8  7  9  9                       5
## 447     3    1    1      5        0 11 11 11                       5
## 448     5    5    5      3        8  8 10  9                       5
## 449     2    1    1      4        6 16 16 17                       4
## 450     2    1    1      1        3 11 13 13                       3
## 451     4    1    2      1        2 15 15 15                       2
## 452     3    1    1      5        0 10 11 11                       5
## 453     5    1    1      4        4  9 10 11                       5
## 454     2    1    2      4        0 10  8  8                       5
## 455     2    1    2      4        3  9  8  8                       5
## 456     2    3    3      2        0  9 10  9                       5
## 457     3    2    1      2        0 13 14 15                       2
## 458     5    5    5      3        4 10 11 11                       5
## 459     2    1    1      1        0 13 10 13                       3
## 460     3    1    1      5        2 10  9 10                       5
## 461     3    1    1      2        1 11 10 11                       5
## 462     2    4    3      2        0 13 12 14                       3
## 463     1    1    2      2        0 13 14 14                       2
## 464     3    2    2      5        2 14 11 12                       3
## 465     4    3    4      5        6 11 11 11                       5
## 466     4    2    3      5        9  9  8  8                       5
## 467     3    1    3      4        0 10  9 11                       5
## 468     4    1    1      2        1 14 13 14                       2
## 469     3    1    2      4        1 13 12 13                       3
## 470     1    1    1      3        0 13 12 13                       3
## 471     4    1    1      1        4 13 12 12                       3
## 472     4    2    3      5        2 12 11 12                       3
## 473     2    1    1      4        0 14 14 16                       2
## 474     3    2    3      4        4 10  8 10                       5
## 475     4    3    5      3        2 10 11 11                       5
## 476     2    1    1      4        0 12 13 14                       3
## 477     3    1    1      5        2 10  8  8                       5
## 478     3    2    4      3       11 12 10 11                       5
## 479     3    1    1      1        0  7  7  8                       1
## 480     3    1    1      5        4  9  9 10                       5
## 481     4    1    1      2        0  9  9 10                       5
## 482     3    1    1      3        2  9 10 11                       5
## 483     1    1    3      4        0  9 10  9                       5
## 484     5    1    2      1        1  9 10 11                       5
## 485     4    1    2      1        6  7  7  8                       1
## 486     5    1    2      4        0 11 10 11                       5
## 487     3    1    4      3        1  9 10 10                       5
## 488     2    1    1      2        6  7  9 10                       5
## 489     1    1    1      3        6  7  9  9                       5
## 490     3    3    4      4        0  8  9 10                       5
## 491     3    1    1      2        4  9 11 10                       5
## 492     4    4    1      1       12  7  8  9                       1
## 493     2    1    1      3        2  8 10 10                       5
## 494     4    3    5      5        5  9  9 10                       5
## 495     5    1    3      3        0  8  9  9                       5
## 496     4    1    1      4        0 14 13 13                       3
## 497     4    2    2      4        2 14 14 14                       2
## 498     5    3    4      5        0 10 11 10                       5
## 499     3    1    1      1        0 14 13 14                       2
## 500     5    1    2      5        0 17 16 16                       4
## 501     5    5    5      1       12  6  7  7                       1
## 502     5    1    5      5        8 14 12 13                       3
## 503     5    3    5      3        2 10  8  9                       5
## 504     1    1    1      5        0 14 14 14                       2
## 505     5    1    1      1        0 12 13 13                       3
## 506     5    1    2      5        0 11 11 11                       5
## 507     4    2    4      3        8 11  9 10                       5
## 508     3    1    1      3        0 11 11 10                       5
## 509     5    1    2      5        0 10  9  9                       5
## 510     2    1    1      1        0 16 17 18                       4
## 511     2    1    1      1        0 15 17 17                       4
## 512     5    1    1      4        1 11  9 10                       5
## 513     2    1    1      5        9  7  7  7                       1
## 514     3    1    3      1        0  8  6  8                       1
## 515     3    1    4      3        2  7  6  7                       1
## 516     5    1    4      3        8  9  8 10                       5
## 517     3    2    3      2        0 14 16 16                       2
## 518     5    1    4      2        0 14 14 15                       2
## 519     2    1    3      1        8  8  5  8                       1
## 520     1    1    1      2        0  8  7  0                       1
## 521     2    1    3      5        6  6  8  8                       1
## 522     3    1    1      2        0  8 10 10                       5
## 523     4    1    2      3        4  8  8  8                       1
## 524     5    5    5      5        2  5  6  6                       1
## 525     1    1    1      2        2  7  9  8                       1
## 526     3    1    2      5        0 15 14 16                       2
## 527     3    1    2      5        1 13 14 14                       2
## 528     3    2    2      3        0 10  9 10                       5
## 529     3    1    2      5        5  9  9  9                       5
## 530     3    1    2      5        1 11 11 11                       5
## 531     4    5    5      3        8  7 10  9                       5
## 532     3    3    3      1        0 10 10 10                       5
## 533     2    1    4      5        2  9  7  8                       1
## 534     2    1    1      3        0 14 15 16                       2
## 535     2    2    5      5        0 11 12 12                       3
## 536     5    1    3      5       11  9 11 10                       5
## 537     5    2    3      5        8 13 14 14                       2
## 538     3    1    2      5       11 12 13 12                       3
## 539     3    2    2      5        2 11 11 11                       5
## 540     4    2    2      1        8  9 10 10                       5
## 541     3    2    2      1        5  9 11 11                       5
## 542     3    1    1      5        0 11  9 11                       5
## 543     5    1    4      5        1 10 11 12                       5
## 544     3    1    3      5        2  9  9  8                       5
## 545     2    3    3      5        2 12 11 12                       3
## 546     4    3    4      5        8  8  9  8                       5
## 547     5    1    1      5        0 13 15 16                       2
## 548     2    2    1      2        0 10 11 11                       5
## 549     5    1    2      3        2 11 10 11                       5
## 550     3    2    3      5        0 17 18 18                       4
## 551     2    2    2      5        0 12 13 13                       3
## 552     2    2    2      1        0 13 14 13                       3
## 553     3    3    4      4        2  9  9 10                       5
## 554     2    1    1      5        4 11 11 12                       3
## 555     5    2    2      4        3 10 11 10                       5
## 556     4    1    1      3        5 13 14 13                       3
## 557     4    2    4      5        4  9 10 11                       5
## 558     4    1    1      5        2  7  9 10                       5
## 559     5    3    5      5        0  8 13 10                       5
## 560     2    1    1      4        0 12 12 13                       3
## 561     5    1    3      2        0 10  9 10                       5
## 562     3    1    4      5        6 10  9 10                       5
## 563     3    1    1      1        0 11 13 12                       3
## 564     1    2    3      5        0  7  0  0                       1
## 565     5    2    3      5        2 11  9 10                       5
## 566     5    2    4      5        0 10 10  9                       5
## 567     3    2    3      5        2  9  7  9                       5
## 568     1    2    2      5        0  4  0  0                       1
## 569     1    1    1      3        4  6 11  9                       5
## 570     5    1    3      3        9  4  8  8                       1
## 571     3    2    4      4        6  7  8  8                       1
## 572     3    1    3      5        4  8  9  9                       5
## 573     5    1    1      1        8  5  5  7                       1
## 574     2    1    2      5        9  7  9 10                       5
## 575     3    2    4      4       12  8 11 10                       5
## 576     4    3    4      2        8 10 11 10                       5
## 577     5    5    5      5        8  9 10 11                       5
## 578     4    3    3      2        8 10  9 11                       5
## 579     4    2    3      3        4  8  9 10                       5
## 580     3    2    3      3        0  9 10  9                       5
## 581     4    3    3      5        4  8  9 10                       5
## 582     3    1    1      5        2  6  8  8                       1
## 583     4    1    1      5        0  6  8  7                       1
## 584     5    1    1      3        0  8  6  0                       1
## 585     3    1    1      5        0 10 11 11                       5
## 586     3    2    2      3        5  8  7  8                       1
## 587     5    1    3      5        0  8  8  0                       1
## 588     3    1    2      4        3  7  6  8                       1
## 589     2    1    1      5        0  8 10  9                       5
## 590     1    1    1      3        0  7 10 10                       5
## 591     4    2    2      5        3  7  8  7                       1
## 592     5    1    1      1        2 12 13 14                       3
## 593     3    1    1      4        0 11 12 13                       3
## 594     3    1    2      4        0 12 13 14                       3
## 595     5    1    2      1        0 18 18 18                       4
## 596     5    1    1      5        3 17 17 17                       4
## 597     3    1    2      4        0 17 18 18                       4
## 598     3    1    1      4        0  9  0  0                       1
## 599     4    5    5      1        8 10 11 11                       5
## 600     5    1    1      1        5 12 13 14                       3
## 601     3    3    4      4        4 12 13 14                       3
## 602     1    1    1      2        4  8  8 10                       5
## 603     5    1    4      3        0 11 12 13                       3
## 604     1    1    1      5        0  5  0  0                       1
## 605     2    1    2      2        2  9 10 10                       5
## 606     5    2    3      2        0  5  0  0                       1
## 607     3    3    1      5        0 18 18 18                       4
## 608     3    1    2      2        5 11 11 12                       3
## 609     3    1    2      3        2  8 10 11                       5
## 610     1    1    1      4        0 11 11 12                       3
## 611     4    1    4      1        0  8  0  0                       1
## 612     1    1    1      4        5 14 14 15                       2
## 613     5    1    3      2        4 10 11 11                       5
## 614     4    1    1      5        0 10 10 10                       5
## 615     3    1    2      5        2 12 12 12                       3
## 616     3    1    2      5        0 15 14 15                       2
## 617     2    1    2      3        2 14 13 14                       2
## 618     2    1    1      4        0 19 17 18                       4
## 619     4    1    4      5        0 16 15 15                       2
## 620     2    1    3      3        6 13 12 13                       3
## 621     4    1    1      1        4 15 14 15                       2
## 622     2    1    2      3        0 13 13 13                       3
## 623     4    2    4      3        0  8 10  9                       5
## 624     2    2    2      5        0 15 16 16                       2
## 625     1    1    2      1        0  8  8  9                       5
## 626     3    1    2      4        0 10 10 10                       5
## 627     2    4    2      5        0  7  5  0                       1
## 628     3    2    3      3        3  9 10 10                       5
## 629     3    1    1      3        8 10 11 12                       5
## 630     5    1    3      1        4  7  8  9                       1
## 631     4    1    1      1        0 15 17 17                       4
## 632     2    1    2      4        4 10 11 12                       5
## 633     3    1    1      3        4  7  8  9                       1
## 634     3    3    4      2        1 13 14 14                       2
## 635     3    1    2      1        1 16 16 16                       4
## 636     4    2    3      1       10  8  9  9                       5
## 637     4    1    4      2        4 17 18 19                       4
## 638     3    1    3      5        0  7  7  0                       1
## 639     3    1    1      3        4 14 15 16                       2
## 640     2    1    3      5        0  5  8  0                       1
## 641     3    4    3      3        0  7  7  0                       1
## 642     3    1    3      4        0 14 17 15                       2
## 643     4    1    1      1        0  6  9 11                       5
## 644     3    2    2      5        4  7  9 10                       5
## 645     2    1    2      5        4 10 11 10                       5
## 646     4    1    1      1        4 15 15 16                       2
## 647     1    1    1      5        6 11 12  9                       5
## 648     5    3    4      2        6 10 10 10                       5
## 649     1    3    4      5        4 10 11 11                       5
#find out if the clusters that were found through  k-means clustering were approximately the same as the unstandardised variables
head(studentporclust1)
##   school sex age address famsize Pstatus Medu Fedu     Mjob     Fjob
## 1     GP   F  18       U     GT3       A    4    4  at_home  teacher
## 2     GP   F  17       U     GT3       T    1    1  at_home    other
## 3     GP   F  15       U     LE3       T    1    1  at_home    other
## 4     GP   F  15       U     GT3       T    4    2   health services
## 5     GP   F  16       U     GT3       T    3    3    other    other
## 6     GP   M  16       U     LE3       T    4    3 services    other
##       reason guardian traveltime studytime failures schoolsup famsup
## 1     course   mother          2         2        0       yes     no
## 2     course   father          1         2        0        no    yes
## 3      other   mother          1         2        0       yes     no
## 4       home   mother          1         3        0        no    yes
## 5       home   father          1         2        0        no    yes
## 6 reputation   mother          1         2        0        no    yes
##   fatherd activities nursery higher internet romantic famrel freetime
## 1      no         no     yes    yes       no       no      4        3
## 2      no         no      no    yes      yes       no      5        3
## 3      no         no     yes    yes      yes       no      4        3
## 4      no        yes     yes    yes      yes      yes      3        2
## 5      no         no     yes    yes       no       no      4        3
## 6      no        yes     yes    yes      yes       no      5        4
##   goout Dalc Walc health absences G1 G2 G3 studentgradefit.cluster
## 1     4    1    1      3        4  0 11 11                       1
## 2     3    1    1      3        2  9 11 11                       5
## 3     2    2    3      3        6 12 13 12                       3
## 4     2    1    1      5        0 14 14 14                       2
## 5     2    1    2      5        0 11 13 13                       3
## 6     2    1    2      5        6 12 12 13                       3
#Use a crosstabulation of(studentpor$G1)and (studentpor$G2)to check correlation
table(studentporclust1$G1,studentporclust1$studentgradefit.cluster)
##     
##       1  2  3  4  5
##   0   1  0  0  0  0
##   4   2  0  0  0  0
##   5   5  0  0  0  0
##   6   7  0  0  0  2
##   7  24  0  0  0  9
##   8  14  0  0  0 28
##   9   3  0  0  0 62
##   10  1  0  8  0 86
##   11  1  1 43  0 46
##   12  0  3 73  0  6
##   13  0 21 51  0  0
##   14  0 51 17  3  0
##   15  0 30  1  4  0
##   16  0  6  0 16  0
##   17  0  0  0 16  0
##   18  0  0  0  7  0
##   19  0  0  0  1  0
table(studentporclust1$G2,studentporclust1$studentgradefit.cluster)
##     
##       1  2  3  4  5
##   0   7  0  0  0  0
##   5   3  0  0  0  0
##   6   7  0  0  0  0
##   7  15  0  0  0  1
##   8  21  0  0  0 19
##   9   3  0  0  0 69
##   10  1  0  2  0 80
##   11  1  0 36  0 66
##   12  0  0 83  0  3
##   13  0 10 69  0  1
##   14  0 51  3  0  0
##   15  0 38  0  0  0
##   16  0 11  0 14  0
##   17  0  2  0 18  0
##   18  0  0  0 14  0
##   19  0  0  0  1  0
#Determine if the (studentpor$G1)and(studentpor$G2) are a signficant predictors of the clusters by  performing a chi-square test:
chisq.test(studentporclust1$G1,studentporclust1$studentgradefit.cluster)
## Warning in chisq.test(studentporclust1$G1,
## studentporclust1$studentgradefit.cluster): Chi-squared approximation may
## be incorrect
## 
##  Pearson's Chi-squared test
## 
## data:  studentporclust1$G1 and studentporclust1$studentgradefit.cluster
## X-squared = 1577.143, df = 64, p-value < 2.2e-16
chisq.test(studentporclust1$G2,studentporclust1$studentgradefit.cluster)
## Warning in chisq.test(studentporclust1$G2,
## studentporclust1$studentgradefit.cluster): Chi-squared approximation may
## be incorrect
## 
##  Pearson's Chi-squared test
## 
## data:  studentporclust1$G2 and studentporclust1$studentgradefit.cluster
## X-squared = 1939.732, df = 60, p-value < 2.2e-16
#Plot clusters to see which datapoints  fall into  which cluster
library(cluster)
clusplot(studentporclust1,studentporclust1$studentgradefit.cluster,colour=TRUE, shade=FALSE,labels=2,lines=3)
## Warning in plot.window(...): "colour" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colour" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colour" is
## not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colour" is
## not a graphical parameter
## Warning in box(...): "colour" is not a graphical parameter
## Warning in title(...): "colour" is not a graphical parameter
## Warning in polygon(z[[i]], density = if (shade) density[i] else 0, col =
## col.clus, : "colour" is not a graphical parameter
## Warning in polygon(z[[i]], density = if (shade) density[i] else 0, col =
## col.clus, : "colour" is not a graphical parameter
## Warning in polygon(z[[i]], density = if (shade) density[i] else 0, col =
## col.clus, : "colour" is not a graphical parameter
## Warning in polygon(z[[i]], density = if (shade) density[i] else 0, col =
## col.clus, : "colour" is not a graphical parameter
## Warning in polygon(z[[i]], density = if (shade) density[i] else 0, col =
## col.clus, : "colour" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colour" is not a
## graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colour" is not a
## graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colour" is not a
## graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colour" is not a
## graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colour" is not a
## graphical parameter
## Warning in text.default(xy, labels = labs, ...): "colour" is not a
## graphical parameter
## Warning in text.default(xy, labels = labs, ...): "colour" is not a
## graphical parameter

clusplot(studentpor,studentporclust1$studentgradefit.cluster,colour=TRUE, shade=FALSE,labels=2,lines=3)
## Warning in plot.window(...): "colour" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "colour" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colour" is
## not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "colour" is
## not a graphical parameter
## Warning in box(...): "colour" is not a graphical parameter
## Warning in title(...): "colour" is not a graphical parameter
## Warning in polygon(z[[i]], density = if (shade) density[i] else 0, col =
## col.clus, : "colour" is not a graphical parameter
## Warning in polygon(z[[i]], density = if (shade) density[i] else 0, col =
## col.clus, : "colour" is not a graphical parameter
## Warning in polygon(z[[i]], density = if (shade) density[i] else 0, col =
## col.clus, : "colour" is not a graphical parameter
## Warning in polygon(z[[i]], density = if (shade) density[i] else 0, col =
## col.clus, : "colour" is not a graphical parameter
## Warning in polygon(z[[i]], density = if (shade) density[i] else 0, col =
## col.clus, : "colour" is not a graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colour" is not a
## graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colour" is not a
## graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colour" is not a
## graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colour" is not a
## graphical parameter
## Warning in plot.xy(xy.coords(x, y), type = type, ...): "colour" is not a
## graphical parameter
## Warning in text.default(xy, labels = labs, ...): "colour" is not a
## graphical parameter
## Warning in text.default(xy, labels = labs, ...): "colour" is not a
## graphical parameter

# An alternative clustering  analysis technique is hierarchical clustering
d<- dist(standardisedgrades,method="euclidean")
studentgradefit<- hclust(d)
studentgradefit
## 
## Call:
## hclust(d = d)
## 
## Cluster method   : complete 
## Distance         : euclidean 
## Number of objects: 649
#Graph the fit
plot(studentgradefit)
groups<- cutree(studentgradefit, k=5)
groups<- cutree(studentgradefit, k=2:5)
rect.hclust(studentgradefit,k=2, border="green")
rect.hclust(studentgradefit,k=3, border="blue")
rect.hclust(studentgradefit,k=5, border="red")

summary(studentgradefit)
##             Length Class  Mode     
## merge       1296   -none- numeric  
## height       648   -none- numeric  
## order        649   -none- numeric  
## labels         0   -none- NULL     
## method         1   -none- character
## call           2   -none- call     
## dist.method    1   -none- character

```

# Fit a varying intercept model to obtain the AIC by first generating a generalised linear model(fixed effects model) to check the significance of each of the fixed effects (G1 and G2)
studentpor<- read.table("student-por.csv", header=TRUE,sep=";")
model1<- glm(formula=G3~G1+G2,data=studentpor)
model1
## 
## Call:  glm(formula = G3 ~ G1 + G2, data = studentpor)
## 
## Coefficients:
## (Intercept)           G1           G2  
##     -0.1713       0.1489       0.8971  
## 
## Degrees of Freedom: 648 Total (i.e. Null);  646 Residual
## Null Deviance:       6763 
## Residual Deviance: 1030  AIC: 2149
summary(model1)
## 
## Call:
## glm(formula = G3 ~ G1 + G2, data = studentpor)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -9.5408  -0.4380  -0.0942   0.6296   5.7109  
## 
## Coefficients:
##             Estimate Std. Error t value Pr(>|t|)    
## (Intercept) -0.17128    0.21510  -0.796    0.426    
## G1           0.14890    0.03600   4.136    4e-05 ***
## G2           0.89714    0.03392  26.448   <2e-16 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for gaussian family taken to be 1.593853)
## 
##     Null deviance: 6763.3  on 648  degrees of freedom
## Residual deviance: 1029.6  on 646  degrees of freedom
## AIC: 2149.3
## 
## Number of Fisher Scoring iterations: 2
# Generate linear mixed effects model to fita varying intercept model with lmer
library(lme4)
## Loading required package: Matrix
## Loading required package: Rcpp
studentpor<- read.table("student-por.csv", header=TRUE,sep=";")
model2<- lmer(formula=G3~G1+G2+(1|school),data=studentpor)
summary(model2)
## Linear mixed model fit by REML ['lmerMod']
## Formula: G3 ~ G1 + G2 + (1 | school)
##    Data: studentpor
## 
## REML criterion at convergence: 2155.1
## 
## Scaled residuals: 
##     Min      1Q  Median      3Q     Max 
## -7.6242 -0.3732 -0.0730  0.5106  4.4800 
## 
## Random effects:
##  Groups   Name        Variance Std.Dev.
##  school   (Intercept) 0.01724  0.1313  
##  Residual             1.58667  1.2596  
## Number of obs: 649, groups:  school, 2
## 
## Fixed effects:
##             Estimate Std. Error t value
## (Intercept) -0.10084    0.23744  -0.425
## G1           0.14234    0.03612   3.940
## G2           0.89541    0.03386  26.445
## 
## Correlation of Fixed Effects:
##    (Intr) G1    
## G1 -0.315       
## G2 -0.163 -0.857
coef(model2)
## $school
##    (Intercept)        G1       G2
## GP  -0.0206979 0.1423439 0.895405
## MS  -0.1809790 0.1423439 0.895405
## 
## attr(,"class")
## [1] "coef.mer"
#Interpret the effect of schools on 
table(studentpor$G1,studentpor$G2)
##     
##       0  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19
##   0   0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0
##   4   1  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0
##   5   2  1  1  0  1  0  0  0  0  0  0  0  0  0  0  0
##   6   0  0  1  2  4  1  0  1  0  0  0  0  0  0  0  0
##   7   2  1  3  6 10  8  2  1  0  0  0  0  0  0  0  0
##   8   1  1  2  5 10 13  8  1  0  1  0  0  0  0  0  0
##   9   1  0  0  3  9 17 24  9  2  0  0  0  0  0  0  0
##   10  0  0  0  0  5 21 25 37  4  3  0  0  0  0  0  0
##   11  0  0  0  0  0 11 18 28 27  6  0  1  0  0  0  0
##   12  0  0  0  0  0  1  5 20 26 27  0  2  1  0  0  0
##   13  0  0  0  0  0  0  1  4 22 21 21  2  0  1  0  0
##   14  0  0  0  0  0  0  0  1  4 20 21 17  4  4  0  0
##   15  0  0  0  0  0  0  0  0  1  2 10 12  8  2  0  0
##   16  0  0  0  0  0  0  0  0  0  0  2  4 10  5  1  0
##   17  0  0  0  0  0  0  0  0  0  0  0  0  2  6  8  0
##   18  0  0  0  0  0  0  0  0  0  0  0  0  0  1  5  1
##   19  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0

```

anova(model2)
## Analysis of Variance Table
##    Df Sum Sq Mean Sq F value
## G1  1 4212.2  4212.2 2654.72
## G2  1 1109.6  1109.6  699.32

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.