Question: Data Description: In a longitudinal study, patients has been recruited and followed up for a certain length of time. During this period data has been

Data Description: In a longitudinal study, patients has been recruited and followed up for a certain length of time. During this period data has been collected for several variables as described below. Id = patients identification number hospAd = date of hospital admission hospDis = = date of hospital discharge DOB= date of birth death = death (1= yes ) reHosp = rehospitalization (1 = yes ) drVislP = In person Dr. Visit ( 1= yes) drVisVR = virtual Dr. Visit ( 1= yes) datV = days at vacation Question to answer using R. Must provide R code and answer. 1. Average days in hospital 2. Average age of pts as of jan01,2023 3. How many patients have (a) died, (b) re-hopitalized 4. How many patients have any Dr visit. 5. Provide summary statistics for the vacation days. Provide your comment for general population so that they have an understanding about the data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
