Hello statalist, I have a panel data needs to calculate the sum of a column value between two dates for each studyid. For example, I need sum MsgRepNtwk between the two mark_date and create a new column storing the output. How could I operate it? Thanks very much for helping it out.
Array
Related Posts with Sum values between two dates in a panel data
Combining two datasets and keeping specific observationsI have two datasets. Dataset A and Dataset B. Dataset A is my existing data that I have organized an…
Interpreting stset- outputHello, I use Stata 15.1 for survival analysis, using a Cox-model (stcox). My master dataset is the U…
Suest after fracregHello all, This seems like a simple question. I wanted to compare coefficients from two models est…
Replacing values from one observation to anotherDear Statalist users, this may be a trivial question to you, but I am a little bit struggling to do…
Fixed effects regression is doing something I'm not noticing?In Stata I complete a fixed-effects conditional logistic regression model of a binary predictor (1==…
Subscribe to:
Post Comments (Atom)
0 Response to Sum values between two dates in a panel data
Post a Comment