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:
But when I try to specify a default, this returns an error: "invalid syntax"
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.
Code:
program boot_mi_impute_mvn syntax varlist [, mi_type(string)] end boot_mi_impute_mvn attendance, rep(400) imp(2) mi_type(mlmi)
Code:
program boot_mi_impute_mvn syntax varlist [, mi_type(string mlmi)] end boot_mi_impute_mvn attendance gpa, mi_type(mlmi)
Comment