ratio with a reference value by ID and year using R
Advertisements I have a panel data with fields – ID, Value, Year, Qtr. I need to compute a ratio field for each ID by dividing the current period value with the starting period value. So, for ID = 1, the ratio would be 10/10, 12/10, and 13/10. Same for ID = 2. ID Value Year… Read More ratio with a reference value by ID and year using R