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
In psmatch2, how many times control individuals were used with replacementHello, while using psmatch2 command for effect estimate with replacement, can you please let me kno…
Testing the difference between two regression coefficientsHi, I am running two regressions using subsets of the data. I wanted to find if the coeffiecients a…
Different symbols for markers in scatterplotHello dear Stata-Pros! I need to create a scatterplot with markers differing optically. One spot sh…
My dataset has corrupted and was automatically edited or changed........how to fix this?Dear statalist users, Since yesterday, my dataset has changed wired. I have been doing lots of regre…
question about heatplot?Dear all, I want to use heatplot command to plot correlation coefficients graph. here is the example…
Subscribe to:
Post Comments (Atom)
0 Response to Adding and simplifying observations; from daily to weekly
Post a Comment