Hello to all.
I´m kind of new in using STATA, and I´m having trouble figuring out how to merge observations. I have binary values for several variables, with several observations per day, and I have to present the weekly values (the addition of them all, per week). I understand it´s a bit basic, but I would appreciate any help. Here´s an example:
Date Week CO MU MN
2017-03-18 17/11 0 0 1
2017-03-18 17/11 0 0 1
2017-03-18 17/11 0 1 0
2017-03-18 17/11 0 0 1
2017-03-18 17/11 0 0 1
2017-03-18 17/11 0 0 1
2017-03-18 17/11 0 0 1
2017-03-19 17/12 0 0 1
2017-03-19 17/12 0 0 1
2017-03-19 17/12 0 0 1
2017-03-19 17/12 0 0 1
2017-03-19 17/12 0 0 1
2017-03-19 17/12 0 0 1
2017-03-19 17/12 0 0 1
2017-03-19 17/12 0 0 1
2017-03-19 17/12 0 1 0
Related Posts with Adding and simplifying observations; from daily to weekly
Problem with Hausman test in xsmleI was estimating spatial panel data models in STATA, when I tried to perform Hausman test, the follo…
Xtabond2 Newbie questionHi, I am a quite newbie to dynamic panels. For my project, I want to run a simple model on governmen…
Transforming panel data with different time pointsHello, I am using data collected from 36 different hospitals over the course of 7 quarters (2015q2 -…
Latent class analysis using gsem - Cross validationHi, I'm trying to learn LCA/LPA using gsem command in Stata by walking myself through Masyn (2013) -…
Averaging values from different "sum, detail outputs"Hi everyone, I was wondering if there is a chance to average "sum, detail outputs" over various mon…
Subscribe to:
Post Comments (Atom)
0 Response to Adding and simplifying observations; from daily to weekly
Post a Comment