Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started