Hello Experts,
I have a panel dataset with patients IDs and Time in months ( 25 months). Each patient have a unique condition. There is some inconsistency between patient id and the condition. For example, lets consider patient with ID 1. The patient had lets say Asthma. I have two problems here to solve:
1- There is an error in the data in terms of conditions. Taking the above example, the data is showing that this patient had Asthma for 10 months and COPD in the other months, which is the error. The questions here: what should I do to replace the COPD to Asthma in the dataset for this patient and other patients with similar problem?
2- The same problem, but instead of COPD I have missing values, how I can replace those missing values with Asthma for patient with ID 1 and do this for all other patients through out the dataset?
Thank You
I have a panel dataset with patients IDs and Time in months ( 25 months). Each patient have a unique condition. There is some inconsistency between patient id and the condition. For example, lets consider patient with ID 1. The patient had lets say Asthma. I have two problems here to solve:
1- There is an error in the data in terms of conditions. Taking the above example, the data is showing that this patient had Asthma for 10 months and COPD in the other months, which is the error. The questions here: what should I do to replace the COPD to Asthma in the dataset for this patient and other patients with similar problem?
2- The same problem, but instead of COPD I have missing values, how I can replace those missing values with Asthma for patient with ID 1 and do this for all other patients through out the dataset?
Thank You
Comment