Colleagues,
I have a dataset with a land-use description codified with a alphanumeric string. Some observations are the followings:
var1 value
R(60ECL(60VAP_20EDFea_10ZAU_10OCT)_40UEN(45VAP_20Z AU_20OCT_15EDFea)) 14
R(60IAS(70EDFnv_20ZAU_10VAP)_40UEN(60VAP_40EDFea)) 12
R(70ERG(60ZAU_15EDFea_15VAP_10OCT)_30EDU(40EDFea_2 5OCT_20VAP_15ZAU)) 46.5
R(90UCS(75EDFea_25VAP)_10ERG(45VAP_35EDFem_20ZAU)) 2
it contains different type of land-use described by letters and its percentages by number. in addition, a land can have two or more description and subdescriptions.
I want to calculate the total value of "ZAU" in each observation but i don´t know how to do that. the complete table has more than 500 observations so it could take me hours to calculate this value for each one. Does anyone have any idea how to do it?
Related Posts with How to calculate a value from a string
Generating Time Variable in Panel DataHi, I am working with two rounds of Indian Development Human Survey Data of round 1 and 2 (individu…
"prefer not to say" survey answersHi I am coding survey responses for stata analysis. I have many answers which are "prefer not to say…
Standard output lostIn Windows 10 with Stata 16 if I log in as "admin" and issue the Stata command -pwd- Stata returns d…
Estimating Marginal Effects after Regression in which one Main Effect is Caught by Fixed EffectHi everyone, I am trying to estimate marginal effects after having run a triple interaction (in a l…
Meta analysis of Binary outcomesHi, folks I am new to STATA switching from RevMan to stata for my meta analysis. I have binary outco…
Subscribe to:
Post Comments (Atom)
0 Response to How to calculate a value from a string
Post a Comment