An analyst for a psychiatric center wants to determine whether the length of time a patient stays in the center affects the reason for discharge. The analyst records length of stay and discharge information for 58 patients over six months. The reason for discharge is recorded as either physician approved or other. Therefore, the reason is binary.
You can use this data to demonstrate Binary Fitted Line Plot.
|Reason||The reason that the patient was discharged. 1 = the patient was discharged by the physician, 2 = other reason. Other reasons include court-ordered, against medical advice, and absent without leave.|
|Month||The month that the patient was admitted to the center: 1–6.|
|Length||The number of days that the patient stayed at the center.|