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
Add variables from a very different set of informationDear friends, I would like to ask you for help on a problem, hopefully someone can help me. I have …
Interactive do File à la C++/PythonI have 2 datasets: A.dta, and B.dta. I want the same set of codes to run on A & B depending on t…
Bank's Cost efficiency and Lerner index for competition estimation in panel data using Stochastic Frontier AnalysisDear Experts, Can anyone help me to estimate Bank's Cost efficiency and Lerner index for competitio…
Calculating difference between observations and sumDear experts, I'm wondering whether you can help me. I wanted to calculate the age similarity based…
How to deal with missing observations in large data setsHello everybody, have a lovely weekend. I have a question. I have a data set from the survey of livi…
Subscribe to:
Post Comments (Atom)
0 Response to divide numbers in stata
Post a Comment