Roland Pfeifer
10/12/2017
For more details on authoring R presentations please visit https://support.rstudio.com/hc/en-us/articles/200486468.
This presentation contains documentation for the Customer Churn LOS application. The application can be found here
This application is exploring the Customer Churn Data with respect to LOS (Length of Stay) distribution
we have forked repository https://github.com/treselle-systems/customer_churn_analysis which contains the sample data set 'WAFn-UseC-Telco-Customer-Churn.csv'
telecomDataframe <- read.csv("WA_Fn-UseC_-Telco-Customer-Churn.csv", sep = ",")
summary(telecomDataframe)
customerID gender SeniorCitizen Partner Dependents
0002-ORFBO: 1 Female:3488 Min. :0.0000 No :3641 No :4933
0003-MKNFE: 1 Male :3555 1st Qu.:0.0000 Yes:3402 Yes:2110
0004-TLHLJ: 1 Median :0.0000
0011-IGKFF: 1 Mean :0.1621
0013-EXCHZ: 1 3rd Qu.:0.0000
0013-MHZWF: 1 Max. :1.0000
(Other) :7037
tenure PhoneService MultipleLines InternetService
Min. : 0.00 No : 682 No :3390 DSL :2421
1st Qu.: 9.00 Yes:6361 No phone service: 682 Fiber optic:3096
Median :29.00 Yes :2971 No :1526
Mean :32.37
3rd Qu.:55.00
Max. :72.00
OnlineSecurity OnlineBackup
No :3498 No :3088
No internet service:1526 No internet service:1526
Yes :2019 Yes :2429
DeviceProtection TechSupport
No :3095 No :3473
No internet service:1526 No internet service:1526
Yes :2422 Yes :2044
StreamingTV StreamingMovies
No :2810 No :2785
No internet service:1526 No internet service:1526
Yes :2707 Yes :2732
Contract PaperlessBilling PaymentMethod
Month-to-month:3875 No :2872 Bank transfer (automatic):1544
One year :1473 Yes:4171 Credit card (automatic) :1522
Two year :1695 Electronic check :2365
Mailed check :1612
MonthlyCharges TotalCharges Churn
Min. : 18.25 Min. : 18.8 No :5174
1st Qu.: 35.50 1st Qu.: 401.4 Yes:1869
Median : 70.35 Median :1397.5
Mean : 64.76 Mean :2283.3
3rd Qu.: 89.85 3rd Qu.:3794.7
Max. :118.75 Max. :8684.8
NA's :11
hist(telecomDataframe$tenure)
The application is build using Shiny package and the source code is in 2 files:
ui.Rserver.RBoth files can be found here: GitHub repo
The application is drawing histogram of frequency of LOS distribution in the telco data set.