Hi,
I have a panel data set where i have variables "location"(where number 1 means one location, 2 another one ans so on) , "sales" numbers in dollar, and year.
i want this for example to work: total sales if location ==1 / total sales
what do i do wrong here? stata does not want to devide things if it is not variables and total sales is one value generated by summarizing all the sales and total sales if location ==1 is an estracted value(total). i want to do this for all locations.
how can i come around this?
it would be helpful if you know how to solve this problem in a table if it is possible as i would want to do it on all locations and se how big the percentage sales of each location is on the total sales of the whole dataset
Related Posts with divide numbers in stata
Maximum CSV size in Stata SE and what to do about 'fat' dataI have a dataset with 4600 observations of 3500 variables. The .xlsx file is 90 MB and the .csv vers…
WeightingGreetings Stata community, Am using Stata version 13. I would like to perform a chi-square test for…
graphHi all, I have data about companies' performance over time and a variable that identifies uncertain…
-estimates use-, error message when reading stored estimates across Stata versionsI have one model estimates file made using Stata v15.1. My co-worker is trying to do -estimates use-…
Does -xtmixed- use the full data set ?Dear all, In texts books, we are told that mixed effects models use the "full" data set. For exampl…
Subscribe to:
Post Comments (Atom)
0 Response to divide numbers in stata
Post a Comment