I'm writing a Stata program, but having trouble specifying a default value for the string argument mi_type(). Here's a simplified version. When I don't specify a default, this runs fine:
Code:
program boot_mi_impute_mvn
syntax varlist [, mi_type(string)]
end
boot_mi_impute_mvn attendance, rep(400) imp(2) mi_type(mlmi)
But when I try to specify a default, this returns an error: "invalid syntax"
Code:
program boot_mi_impute_mvn
syntax varlist [, mi_type(string mlmi)]
end
boot_mi_impute_mvn attendance gpa, mi_type(mlmi)
Do you see what's wrong with my syntax statement? And can you tell me how to specify a default for the string argument -mi_type()? Many thanks.
0 Response to Specify default for string argument to Stata -program-
Post a Comment