I have been working for 2 + years with data generated from a custom app seeking improvement in treatment of Parkinson's disease. Data are merged from 3 streams, tsset with 1 minute intervals, every day is a panel. Data elements from the app include patient reported symptoms, time, type and quantity of dopamine and related drugs (Rytary and Requip) and other variables. The second stream is biometric data reported by the Apple watch: heart rate, basal and active energy, steps, and the like. The third stream emanates from a Scilab model that estimates concentrations of drugs based on a state space technique.
Drugs are supposed to be taken every 4 hours, at 02 06 10 14 18 and 22 hours, but actual times vary. I seek to establish subpanels based on a new variable aux_axis whose value is zero 60 minutes before a non_zero instance of time_Ry, the time each Rytary is taken, and is 180 120 minutes after actual pill time.
My general approach has been to use subgroup techniques described in Mitchell, MN, "Data Management Using Stata", 2010, Chapter 7, with direct addressing of subscripts, but I haven't succeeded. Is there a better approach to this goal?
Related Posts with Seeking an efficient way to establish auxiliary time scales refrenced to data elements
Problem with Counting observations across firm identifierDear Stata users, Version 16.1 I have 4 variables - firm_id, type_product, type_airframe, and Appli…
Panel dataHello everyone! My name is Tobi and i want to ask you to help me. In my panel data a RE model was ch…
Calculating date from day of year and yearHi there, I have a day-of-year variable (1 - 366), and year variable (4- digit, i.e. - 2012, etc) a…
PSM with psmatch2 and xtregHello everyone, I'm trying to do a difference in difference regression on matched data. However, I …
New version of kmest on SSC (AGAIN)Thanks once again to Kit Baum, a new version of the kmest package (superseding yesterday's version) …
Subscribe to:
Post Comments (Atom)
0 Response to Seeking an efficient way to establish auxiliary time scales refrenced to data elements
Post a Comment