Hello, I've obtained from "Stata Journal, volume 18, number 2: st0527" the command -attrition-. This excellent command will graph attrition of patients in a study, or studies in a meta-analysis.
I'm using Stata Stata/IC 15.1 for Mac (64-bit Intel), Revision 27 Jun 2018.
I'm testing the help file example, as follows, and all commands work except for the sub-command -graph attrition-:
Within the help file example, the command:
results in:
1. No graph being displayed,
2. An ".svg" file being saved, which contains the error message: "error on line 2 at column 2: StartTag: invalid element name".
Note: I'm using the Mac app -Gapplin- to display the ".svg" graph file.
I believe that my Stata is performing correctly, because the -graph- command works as expected with:
Any advice as to solutions would be very much appreciated.
Michael
I'm using Stata Stata/IC 15.1 for Mac (64-bit Intel), Revision 27 Jun 2018.
I'm testing the help file example, as follows, and all commands work except for the sub-command -graph attrition-:
Code:
*Setup
sysuse auto, clear
generate use_record = 1
*Build attrition diagram and set inclusion variable
attrition set use_record, description("Total cars:")
attrition exclude use_record if price >= 10000, description("Price <$10,000 excludes")
attrition exclude use_record if missing(rep78), description("Repair records required excludes")
attrition tab use_record foreign
attrition exclude use_record if turn > 44, description("Turning radius <=44 feet excludes")
attrition count use_record, description("Included cars:")
attrition tab use_record foreign
attrition graph use_record using "example-auto-output.svg", replace
attrition list use_record
Code:
attrition graph use_record using "example-auto-output.svg", replace
1. No graph being displayed,
2. An ".svg" file being saved, which contains the error message: "error on line 2 at column 2: StartTag: invalid element name".
Note: I'm using the Mac app -Gapplin- to display the ".svg" graph file.
I believe that my Stata is performing correctly, because the -graph- command works as expected with:
Code:
sysuse auto, clear scatter mpg weight
Any advice as to solutions would be very much appreciated.
Michael
