Dear All,
I am trying to create a new "state" variable from certain city codes, one can observe that each city code has its own state number at the beginning. For example, 5 is state A and 99 is state Z. I was wondering if it is possible to extract the first (or first two) numbers from a city code and from that, create a new variable which assigns it to a state. I realize this is possible but due to my unfamiliarity with loops I would like to ask for anybody's help.
Thank you very much.
Juan
Related Posts with Creating State variables from city codes
Calculate Exponentially Weighted Moving Average for Unbalanced Panel DataHi all, I want to calculate exponentially weighted moving average of past performance in an unbalan…
How to test if the difference between two groups are significantly different from the difference between two other groups.Dear all, I am doing an interaction analysis with two factorial variables (informationtype and gend…
common supporthi how can i use the value of pscore to construct the common support. i should use the minimum betwe…
Importing fixed with data using infix - dictionary invalidHello, I am importing fixed with data from a .txt file. Here is my code: Code: cd "...\1973-09-t…
Importing fixed width data using infix - dictionary invalidHello, I am importing fixed with data from a .txt file. Here is my code: Code: cd "...\1973-09-t…
Subscribe to:
Post Comments (Atom)
0 Response to Creating State variables from city codes
Post a Comment