I have a variable that contains totals of advertising costs for different products from different years, so it contains the total advertising costs for products A, B, and C. My question is how do I total only the costs from specific years within that variable? So to combine the costs for all products in 2007. I know that I'm supposed to provide code, but I can barely add at this point.
Related Posts with Super simple syntax question
Difference between a classical DID and panel regression wrt interaction termDear Stata Members I have a question related to the interpretation and choosing the right model. Let…
Set baseline category of date variableI want to set the baseline category of a date variable. I thought of using fvset, see below. It does…
Help correlating between parameters across tasks and participantsHello everyone, This question may be rudimentary, however I haven't touched statistics for a very lo…
Rank with a ConditionHello, I am stuck trying to rank a variable conditionally.....I understand rank is an egen function…
Too much margin on x-axis with graph combineHi Statalists, I am combining four graphs with datetime on the x-axes. The individual graphs have a…
Subscribe to:
Post Comments (Atom)
0 Response to Super simple syntax question
Post a Comment