Hello,
I would like to translate this R formula below in Stata.
My data :
translate <- contains : translate$ID translate$WORDS (list of words) translate$RESUME
home <- contains : home$ID home$adress home$RESUME (empty field)
I whant to complete home$RESUME from translate$RESUME looping with translate$ID and translate$WORDS
[I]for(i in 1:nrow(translate)){
home$RESUME[grepl(translate$WORDS[i], home$adress, ignore.case = TRUE) & home$ID == translate$ID[i]] <- translate$RESUME
}
Thank you for your help !
Marc
Related Posts with Translate R to STATA
Calibration of logistic regression on large dataset.Evaluating goodness-of-fit for a logistic regression model using the Hosmer-Lemeshow test is not rel…
Guarantee 3 consecutive observations before and after the eventDear Stata Users, I need to keep just those firms (gvkey) that have 3 year consecutive observations…
Generate a moving window averageIs there an easy way to generate a moving window average? For instance, for every 5 minutes of Ta_NO…
Weak IV test postestimation test when using ivreghdfe command?Dear STATA community, I am hoping you can help me find a command I am looking for. My coauthor and …
Can I use tssmooth for a fixed number of periods like a rolling forecast, safe the forecast t+5, then start in t+1, save forecast t+6...Hello everybody, I'm trying to forecast values for the strategy of companies. I have a panel datase…
Subscribe to:
Post Comments (Atom)
0 Response to Translate R to STATA
Post a Comment