| University | National Institutes of Health (NIH) |
| Subject | Linear Programming (R Python) |
Programming Assignment
Instructions
- You are allowed to use the following software to answer the questions:
– R and Rstudio
– Python
- Some questions are designed to be open-ended and have several correct answers or multiple ways to express your answer. Strive to be concise and precise in your answers. Excessive words or quotes will be penalized. You are notexpected to write essay, and excessive words signal that you do not know what is important.
- You may use more than one page per question, if necessary, but start each new question number on a new page.
Hospital Length of Stay Estimation at Admission
Inpatient Length of Stay (LOS) in hospitals are important estimates done upon admission (after a tentative diagnosis) to plan for hospital resources (beds, specialized equipment, doctors/nurses with specific training, etc…) and to inform the patient on the estimated cost of stay so that they can get the required approval from insurance. Currently, the estimation is done using the mean LOS in each CCSR diagnosis.
A data sample (INF002v4.csv) and data dictionary from the New York State Department of Health are provided. The length of stay value of 120+ had been recoded to 120 so that you can use LOS as a continuous integer variable.
The business objective is to estimate the LOS more accurately upon admission than using the mean LOS.
1. Explore the data and report 3 notable findings.
2. State the list of potential predictor X variables that will be inputs to models and the final dimensions of the dataset (i.e. number of observations and variables).
3. Using 70-30 train-test, conduct (a) Linear Regression, and (b) CART to compare testset errors. Explain your specification of the model1 and display the results in a table.

4. Comment on your models’ results and provide insights for the business application.
5. Suggest improvements.
Stuck with a lot of homework assignments and feeling stressed ? Take professional academic assistance & Get 100% Plagiarism free papers
Boost your academic journey with our Singapore assignment help online! If you're seeking expert guidance for your computer science assignment help in linear programming (R, Python), look no further. Enjoy affordable, high-quality services where you can pay someone to do my assignment for me with confidence. Our commitment includes 100% human-written assignments—no AI involved—ensuring A+ guaranteed, on-time delivery, and plagiarism-free content. Get started today and excel in your coursework!
Looking for Plagiarism free Answers for your college/ university Assignments.
- FILM1000 Introduction to Film Studies Assignment Brief 2026 | NTU
- CET206 Full Stack Web Application Development Tutar Marked Assignment Questions 2026 | SUSS
- 7WBS2011 Strategic Management Research Assignment Brief 2026 | PSB Academy
- HBC101 Understanding Contemporary Society: The Social and Behavioural Sciences TMA 01 2026 | SUSS
- SOC365 Popular Culture End-of-Course Assessment Question 2026 | SUSS
- BME317 Biomedical Devices Innovation Tutor-Marked Assignment 2026 | SUSS
- CU6027 Digital Marketing Report Assessment Brief 2026 | SUSS
- RBP020L062V Financial Performance Management Summative Assessment 2026
- ESE1008 Data Visualisation and Analytics Assessment Report 2026 | Temasek Polytechnic
- BUS100 Business Skills and Management Assignment Questions 2026 | SUSS
