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
Calculating distance between inventors, how to perform per patent?Hi all! I have a question regarding how to calculate average distance between inventors per patent.…
Social-Network Peer Effect Regression AnalysisI am estimating peer effect of students on their GPA score using Friendship network model. The model…
Generates averages for partial observationsHi everyone! My dataset is composed of 4122 observations: 83 cities and for each observation to 190…
Requesting help on data structure, routine and graphHello all, I'm working with monthly rainfall data over a 40 year period and the goal is to see if th…
How to refer to (and select) other variable within observation conditional on dummy being 1?I am stuck on a very particular problem and I am sure there needs to be a way to solve it. The data…
Subscribe to:
Post Comments (Atom)
0 Response to Adding and simplifying observations; from daily to weekly
Post a Comment