I have a dataset, which has a (country_name) variable and a count of (requests) sent from that country to a company both variables are coded as long data.
My question is how to summarize the values of the (requests) variable for each (country).
If I use the code:
collapse (sum) requests, by (country_name)
the results are wrong.
Related Posts with Help with collapse (sum) command
weighted transition matrixHello, I am working with a household survey panel data. I have weights (not integer, time varying) …
Problem with constructing panel data based on dummy variablesHello everyone, I am a beginner with Stata (using version 16.1) and I am working with patent transac…
Visualizing an interaction termDear Statalist, I have just recently started using Stata, so this might be a rookie question. I ha…
Question on oneway anova and pairwise comparisonRecently, I'm conducting research, we would like to see some difference between different national i…
Estimate the C-score and G-score following Khan and Watts(2009) - Journal of Accounting and EconomicsAll: I tried to estimate the C-score and G-score following Khan and Watts(2009) - Journal of Account…
Subscribe to:
Post Comments (Atom)
0 Response to Help with collapse (sum) command
Post a Comment