March 2019
Beginner to intermediate
250 pages
6h 6m
English
Let’s check the number of observations and the proportion of failed banks over the total banks in each sample:
print("The development sample contains the following number of observations:") ## [1] "The development sample contains the following number of observations:"nrow(train) ## [1] 7091print("The average number of failed banks in the sample is:") ## [1] "The average number of failed banks in the sample is:"(sum(train$Default)/nrow(train)) ## [1] 0.04696094print("The validation sample contains the following number of observations:") ## [1] "The validation sample contains the following number of observations:"nrow(test) ## [1] 3039print("The average number of failed banks in the sample is:") ## [1] "The average number of ...Read now
Unlock full access