Hi there!
The forum already helped me a great deal (thx especially to Nick Cox!). However I am now stuck to a problem since several days. I have 268 variables. Half of them (v83 v85 v87 etc) show how the workers of a task decided to answer: a) inserting a phone number of a certain firm ("The phone number of the company is:") // or b) claiming they have not found a phone number ("No phone number available."). The other half of the variables give the (already cleaned) text-entry of the workers (v84 is the text-entry for v83).
What am I searching for:
1)
LIST THOSE_VAR if (count of "stringABC" > count of "stringXYZ") in each of the SELECTED_VARS
cf.: LIST THOSE_VAR if (count of "No phone number available." > count of "The phone number of the company is:") in all the selected vars
2)
Table SELECTED_VARS => showing: (count of "stringABC" and also count of "stringXYZ")
codebook v83 and the other vars does not give a handy table but a "never" ending list
3)
Table SELECTED_VARS => showing: the two most common entries
Thx a lot for the help!
Array
Related Posts with different count problems within variables
Create observations for neighboring statesHello, I have a dataset of firms investments in different states: e.g. Firm A invests $1million in …
Population size using SVY too smallHello; I did the following on Stata: svy:tab b8_under5, obs percent And the results I got were odd…
STATA coefplot: plot other coefficients benchmark to one coefficientI'm using coefplot to plot the coefficients on xlag3, xlag2, xlag1, x, xlead1,xlead2,xlead3 from my …
SVYSET and SVY:tab helpHello, I have the following two SPSS commands. This is what I have from the SPSS codebook: CSPLAN A…
Graph bar for categorical variable, but sorted in prespecified orderThis is a stunningly simple problem and I know there is a stunningly simple answer, but I can't figu…
Subscribe to:
Post Comments (Atom)
0 Response to different count problems within variables
Post a Comment