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
Import data from an ESRI geodatabaseHello, I would like to know if it is possible to connect STATA with a geodatabase ESRI. I do not wh…
Covariance matrix for two different modelsIs there a way to get covariance matrix of coefficients from two different models? I am trying to ca…
Time windowFama-MacBeth Regression (fmb)Hello everyone, I am trying to run a 2 step fama macbeth regression for financial data, for which t…
Coarsened Exact Matching - How to force cem to not match on a variableHi, I am working with unbalanced panel data at the individual-month level. I would like to match in…
Output results from looped cox regressionHello, I am fairly new to Stata. I need to run a cox regression over 248 variables and I want to the…
Subscribe to:
Post Comments (Atom)
0 Response to Seeking an efficient way to establish auxiliary time scales refrenced to data elements
Post a Comment