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
command for conditional likelihood regression using timesseries dataDear mr/mrs, I am currently trying to make a regression in STATA using times-series data on GNP. I …
Problem with predicting survival probabilities from stpm2 model with TVC in external dataI have built a prognostic model using stpm2 which includes a tvc (all covariates in model are center…
Obtaining relative excess risk due to interaction (RERI) with weighted dataHi all, I am familiar with using the ic command in STATA to obtain RERI. However, I need to obtain …
Using r() with recodeI am trying to recode a variable using the values from the return list but from the error message I …
Calculation of frequency and ratiosHi Everyone, Bellow in the -dataex- example, I have a zipcode, date (month_year) and name of an ins…
Subscribe to:
Post Comments (Atom)
0 Response to Sum values between two dates in a panel data
Post a Comment