I am using version 18 of Stata on a Windows 11 PC, and cannot get any of the user-defined evaluators provided in the user manual "bayesmh evaluators" to work. For example, consider program "logitll" defined on page 13 of the online manual at https://www.stata.com/manuals/bayesb...esmhevaluators.
The first two lines of the program are:
args lnfj xb
quietly replace ‘lnfj’ = ln(invlogit( ‘xb’)) if $MH_y == 1 & $MH_touse
The logitll ado file is called by the command "bayesmh foreign mpg, llevaluator(logitll) prior({foreign:}, flat)" given on p.14 of the same online manual. It is used in conjunction with the r19/auto data. Despite copying the ado file exactly as written in the manual, and placing it in my personal folder, the program will never work, always yielding the error message:
' invalid name
logitll could not be evaluated
r(198);
Turning set trace on, the error seems to be triggered when execution encounters the apostrophe; it doesn't matter if a left or right apostrophe is used.
I have a sinking feeling that there is a very simple and obvious fix to this problem, and that I am being incredibly obtuse. Could someone please point out what I'm missing?
The first two lines of the program are:
args lnfj xb
quietly replace ‘lnfj’ = ln(invlogit( ‘xb’)) if $MH_y == 1 & $MH_touse
The logitll ado file is called by the command "bayesmh foreign mpg, llevaluator(logitll) prior({foreign:}, flat)" given on p.14 of the same online manual. It is used in conjunction with the r19/auto data. Despite copying the ado file exactly as written in the manual, and placing it in my personal folder, the program will never work, always yielding the error message:
' invalid name
logitll could not be evaluated
r(198);
Turning set trace on, the error seems to be triggered when execution encounters the apostrophe; it doesn't matter if a left or right apostrophe is used.
I have a sinking feeling that there is a very simple and obvious fix to this problem, and that I am being incredibly obtuse. Could someone please point out what I'm missing?
Comment