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
Creating new variables based on information from three other variablesI’m having some difficulty creating a new variable from three others. All variables are of binary ty…
Generating new variables based on information in other observations in datasetI'm working with some NCAA football player data. I've reached a bit of a difficult (for me) data cle…
metan Hazard Ratio log scaleHello, I am running cox regression and I want to make forest plot of my hazard ratios using metan. I…
How to calculate the Average Treatment Effect on the Untreated (ATU) vs. ATE/ATETQuite often, I am more interested in knowing how a treatment might improve the outcomes of the untre…
Within estimator singleton Code: sysuse auto split make encode make1, g(id) xtset id xtreg price displacement, fe Assume that …
Subscribe to:
Post Comments (Atom)
0 Response to Super simple syntax question
Post a Comment