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
Including prevalence ratio in table after glm using asdocHello, I would like to export prevalence ratios into a word table after a glm poisson model using t…
Approximating the degrees of freedom in a multilevel modelHi everybody, I'm trying to estimate a random intercept and slope model, were I estimate the degree…
Contingency tables with missing values but chi2 with valid valuesHi everyone, I'am comparing a dichotomic variable between 2 groups. Group n°1 is 199 observations in…
Plotting trends in relative and absolute inequalities using riigen and marginsHello, In a repeated cross-sectional designed study I would like to calculate the relative and abso…
Remove observations of a panel data set based on observations of specific yearsHi All, I have a panel data set as below (only an example and may not be balanced). I want to drop …
Subscribe to:
Post Comments (Atom)
0 Response to Help with collapse (sum) command
Post a Comment