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
how can I turn year of birth into age?Hello! I'm trying to recode a variable named V241 in the World Values Survey data set (which can be …
STataSta …
Code to import value labelsHey im trying to import value labels to a set of observations in a variable. Var name: Parentesco …
Is there a command for creating deciles by date?I understand the command xtile ... , nq(10) can create deciles based on the entire data-set being ag…
Stata16: Measurement invariance testing - how to get Chi2 values?Hi there, I want to test for measurement invariance in Stata 16. I want to follow the approach of t…
Subscribe to:
Post Comments (Atom)
0 Response to different count problems within variables
Post a Comment