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
Different values (year of birth reported for the same individual - can Stata pick the value occuring most frequently (mode)Dear all, I'm working with a dataset with 24 different data waves. Not all individuals have informat…
event study using GARCH and obtaining Cumulative abnormal volatilityDear statalisters, I am currently doing an event study to test the effect of terrorists events on t…
logit and marginsDear All, I use the dataset margex and the command margins in order to replicate an example I saw i…
GSEM: Using a latent variable as an explanatory variable in the multinomial logistic regressionHi, Is it possible to use CFA outputs, latent variables, as explanatory (independent) variables in …
Plotting a subset of a sample (%) using a barchartHi, I am trying to plot the share of male smokers of the population against the 4 education categor…
Subscribe to:
Post Comments (Atom)
0 Response to Help with collapse (sum) command
Post a Comment