Hello!
I faced with a problem of making graphs.
I have the following task. There are files from 2006 to 2017, the information in them is the answers of people from different age about their food costs. Every 7 day (within 6 months) such questionnaires were fulfilled. I need to present a graph (linear), where on X axis there will be date (divide the X axis by these 6 months and point out weeks of each month by numbers), on Y axis there will be the sum of costs of pensioners in this period.
The part of the code is the following. Here I extract necessary variables from these group of files and rename them.
forvalues num = 1(1)58 {
capture ren UA4_1 dateinterview_`num'
capture ren UA4_2 monthinterview_`num'
capture ren UB`num'_1 indivQ_`num'
capture ren UB`num'_2_1 inHH_`num'
capture ren UB`num'_2_23 whynotinHH_`num'
capture ren UB`num'_3 monthsinHH_`num'
capture ren UB`num'_4 sex_`num'
capture ren ue1_`num'c moneyfood_`num'
}
*
I have tried many options but everything has failed. Could you help me?
Thank you in advance!
Related Posts with Making graphs of costs within weeks
Hausman test is failingDear community members, With reference to thread https://www.statalist.org/forums/for...-of-i-categ…
Rotation in correspondence analysisRegards. How could I perform a rotation in a correspondence analysis in Stata? …
Graph align xtitle rightHi, I have been trying to move my xtitle in a graph towards the right instead of centered. I checked…
random selection between observationHi everyone, In the below dataset, I want to randomly delete one of the observations that has the sa…
eventstudy2: how to read carfile for BHAR modelHello everyone I have a quick question about significance test for BHAR model, using eventstudy2 f…
Subscribe to:
Post Comments (Atom)
0 Response to Making graphs of costs within weeks
Post a Comment