R studio
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →You are given a dataset records of a telecom company’s customer data. All information regarding all variables can be referred to the following R outputs. ‘data.frame’: 7043 obs. of 21 variables: $ customerID : Factor w/ 7043 levels “0002-ORFBO”,”0003-MKNFE”,..: 5376 3963 2565 5536 6512 6552 1003 4771 5605 4535 … $ gender : Factor w/ 2 levels “Female”,”Male”: 1 2 2 2 1 1 2 1 1 2 … $ SeniorCitizen : int 0 0 0 0 0 0 0 0 0 0 … $ Partner : Factor w/ 2 levels “No”,”Yes”: 2 1 1 1 1 1 1 1 2 1 … $ Dependents : Factor w/ 2 levels “No”,”Yes”: 1 1 1 1 1 1 2 1 1 2 … $ tenure : int 1 34 2 45 2 8 22 10 28 62 … $ PhoneService : Factor w/ 2 levels “No”,”Yes”: 1 2 2 1 2 2 2 1 2 2 … $ MultipleLines : Factor w/ 3 levels “No”,”No phone service”,..: 2 1 1 2 1 3 3 2 3 1 … $ InternetService : Factor w/ 3 levels “DSL”,”Fiber optic”,..: 1 1 1 1 2 2 2 1 2 1 … $ OnlineSecurity : Factor w/ 3 levels “No”,”No internet service”,..: 1 3 3 3 1 1 1 3 1 3 … $ OnlineBackup : Factor w/ 3 levels “No”,”No internet service”,..: 3 1 3 1 1 1 3 1 1 3 … $ DeviceProtection: Factor w/ 3 levels “No”,”No internet service”,..: 1 3 1 3 1 3 1 1 3 1 … $ TechSupport : Factor w/ 3 levels “No”,”No internet service”,..: 1 1 1 3 1 1 1 1 3 1 … $ StreamingTV : Factor w/ 3 levels “No”,”No internet service”,..: 1 1 1 1 1 3 3 1 3 1 … $ StreamingMovies : Factor w/ 3 levels “No”,”No internet service”,..: 1 1 1 1 1 3 1 1 3 1 … $ Contract : Factor w/ 3 levels “Month-to-month”,..: 1 2 1 2 1 1 1 1 1 2 … $ PaperlessBilling: Factor w/ 2 levels “No”,”Yes”: 2 1 2 1 2 2 2 1 2 1 … $ PaymentMethod : Factor w/ 4 levels “Bank transfer (automatic)”,..: 3 4 4 1 3 3 2 4 3 1 … $ MonthlyCharges : num 29.9 57 53.9 42.3 70.7 … $ TotalCharges : num 29.9 1889.5 108.2 1840.8 151.7 … $ Churn : Factor w/ 2 levels “No”,”Yes”: 1 1 2 1 2 2 1 1 2 1 Using the dataset to conduct the following operations (total 80 points): 1. Find out TotalCharges by Seniority (i.e., SeniorCitizen) and gender 5points 2. Test if TotalCharges differ by Seniority 5 points 3. Test if MonthlyCharges differ by PaymentMethod 5points 4. Create a table of MonthyCharges by Contract and PaymentMethod 5 points 5. Build the best model to predict TotalCharges 20 points 6. Build the best model to predict customer retention. 20 points 7. Conduct survival analyses 20 points a. General survival rate pattern b. Survival rate differs by seniority? c. and use 36 as your RMST comparison of survival time by Contract type. Please note that you need to turn in HTML or PDF or WORD based on Rnotebook. Copy&paste your code/output will reduce your grade by 20%.
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds