Hi all,
I am having a type mismatch error for the following code (final line before the curly brace) when la_seroa is an empty variable. Is there any way for this code to work even if la_seroa is entirely missing?
forval x=1/$max_sero {
gen sero`x'_final = ""
replace sero`x'_final = sero`x'_clean if use_sero`x'== 1
replace sero`x'_final = la_seroa if use_sero`x'== 2 & num_variant_seroa==`x'
}
Thank you!
Related Posts with Type mismatch error
collapse string?Dear All, II find this question here (https://bbs.pinggu.org/forum.php?mod...=1#pid58387315). The da…
How to extract coefficients from saved results in "cointreg" package?Dear all, I am using -cointreg- from SSC in Stata 14. I have a panel dataset. However, I'm estimati…
Variable with characterDear All I need help with a basic question that I can't find a solution to I have variables that c…
ppml_panel_sg errordear statalist hello i try to use panel data with 'ppml_panel_sg' gravity model i want to add time…
P-Value Interpretation for Dummy Variables (output included)Hello, I am having some difficulty interpreting the p-value of my results - especially the dummy va…
Subscribe to:
Post Comments (Atom)
0 Response to Type mismatch error
Post a Comment