Skip to content

Commit

Permalink
#203 confirm imputed variable with confirm, exact instead of unab
Browse files Browse the repository at this point in the history
  • Loading branch information
jorpppp committed May 14, 2024
1 parent 5c52fa1 commit 548b1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtevent/_eventgenvars.ado
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ program define _eventgenvars, rclass

* Check for a variable named as the imputed policyvar
if "`saveimp'"!="" {
cap unab oldkvars : `policyvar'_imputed
cap confirm var `policyvar'_imputed, exact
if !_rc {
di as err _n "You have a variable named `policyvar'_imputed. This name is reserved for the imputed policy variable."
di as err _n "Please drop or rename this variable before proceeding."
Expand Down

0 comments on commit 548b1a6

Please sign in to comment.