Dear Statalist,
I am facing problem in decoding string variable. For example, the following command has been called to recode.
recode Var=1 if var1== 1-2.
because my variable is in string format which is attached here. When I tried using the above said command i have got a "type mismatch" error. So kindly can anyone help me to solve the problem.
Array
Related Posts with having problem in recoding
Oprobit dependent variables only categorical?Dear all, I am not that familiar with ordered probit regression. Please, tell me, should all depende…
Latent Class Model: problem with choosing the number of classesDear Specialists, I have tried the lclogit2 for each class (2,3 and 4), I could receive results fro…
How to create a identifiers in Stata?I have around 40,000 obs in my dataset and I wish to club 1-10 obs as code 1, 11-20 as code 2.. so o…
categorize a variable if certain words are found in it from a big listHi everyone, I want to categorize a variable based on a list that I have maintained. This list is c…
How to make a binary outcome variable of 3 other variablesHi all, My outcome variable is Entrepreneur =Yes=1 and Entrepreneur = No=wageworker=0 I'm using GEM…
Subscribe to:
Post Comments (Atom)
0 Response to having problem in recoding
Post a Comment