Hello,
I keep getting the error not a twoway plot type. Was wondering if anyone had any suggestions.
levelsof county, local(cty)
levelsof disease, local(dis)
foreach c of local cty{
foreach d of local dis{
twoway (bar cases year if county=="`c'" & disease=="`d'", yaxis(2) ///
yscale(range(0,2500) axis(2)) ///
ytick(0(500)2500, axis(2)) ///
ylabel(0(500)2500, axis(2))) ///
(line rate1 year if county=="`c'" & disease=="`d'", sort yaxis(1) ///
yscale(range(0,35) axis(1)) ///
ytick(0(5)35, axis(1)) ///
ylabel(0(5)35, axis(1))) ///
(rcap lower_95__ci upper_95__ci year if county=="`c'" & disease=="`d'", yaxis(1) ///
yscale(range(0,35) axis(1)) ///
ytick(0(5)35, axis(1)) ///
ylabel(0(5)35, axis(1))), ///
scheme(sj) ///
legend(label(1 "Cases") label(2 "Rate") label(3 "95%CI") row(1)) ///
ytitle("Rate, per 100,000 population", axis(1)) ///
title("`d' in `c', 2001-2019") ///
note("Data source: kaggle.com/zayanmakar/infectious-diseases-county-year-and-sex")///
graph export "Output/top5.png", replace ///
putexcel set "Output/GraphFile.xlsx", modify ///
putexcel B`3' = image(Output/top5.png) ///
}
}
Related Posts with Is not a two-way plot type
Marginsplot shows positive values but descriptive statistics show negative valuesHello I am trying to create a marginsplot for my regression. The regression includes a continuous I…
Gologit2 npl lrforce(unconstrained) optionHi everyone, I have used a gologit model since ologit model is violated according to Brant Test. How…
VSELECT command not workingHello! I am trying to use the following Vselect command and am getting the following error message. …
Stata doesn't report an error code when it was blocked from running regressions, what's wrong?I ran a lot of regressions in a loop statement in the server and found I didn't get the output, in t…
Panel data regression weird ORDear statalist community, Thank you all in advance for taking the time to read this post and help m…
Subscribe to:
Post Comments (Atom)
0 Response to Is not a two-way plot type
Post a Comment