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
Panel model - Heteroskedasticity and Graphical representationHi everyone! I am conducting my masters degree thesis, performing a panel model in Stata. The panel …
Alternative to fixed-effects Binomial Model for longitudinal dataHi all: My dependent variable, v6mouses, is drug use; 60.15% of the result is 0 and 26.92% of the r…
F test and Chi2 testHi everyone: I would like to verify the relationship between F and chi2. But it is found that they …
How to compute the sum of the first occurence within Group(s) in Stata?I have a small long format dataset below. * Example generated by -dataex-. For more info, type help …
Ask for Help with Computation of Running Sum of a Variable within Multiple Variables in Stata.The long format dataset is presented as follows. It has 3 columns, gender (male=1; female=2), period…
Subscribe to:
Post Comments (Atom)
0 Response to Help with collapse (sum) command
Post a Comment