Hello,
I have made a multilevel model for which I want to plot the effects of one of the levels, which has 675 observations through a standard error bar chart (serrbar command). I have ordered the effects with the rank command, in addition to obtaining the standard errors. The problem is that I tried unsuccessfully to apply the "in" option so that the graph only shows the 20 best observations, but the 675 appear making the graph impossible to read. This is the code without the "in" option:
[CODE]]generate labheight = v0 + 1.96*v0se + 0.05 serrbar v0 v0se v0rank if pickone_Driver==1, scale(1.96) yline(0) /// addplot(scatter labheight v0rank, /// msymbol(none) mlabel(Driver) /// mlabposition(1) mlabangle(vertical) mlabcolor(navy)) /// ytitle("Predicted Driver effect") xtitle("Rank") /// legend(off)[/CODE
How should I include the option to achieve my goal? Thanks for your help
Related Posts with Selecting certain observations for a graph
Forest plotHello , I was wondering if you could anyone could help me with coding to reproduce the following gra…
Canonical Correlation AnalysisHello, I would like to make a canonical correlation analysis with: y1 y2 y3 y4 y5 as dependent var…
Clustered standard errors for a single variable in panel dataDear Stata users, I am working with panel data for funds and look for a solution to calculate stand…
m:m merging - clarificationHi there, I have 2 datasets; one shows the data of patients who were diagnosed with cancers and the…
Subgroup Analysis and Sample Selection BiasI employ a DiD model and want to compare the effect of independent variable (post##treatment) on a d…
Subscribe to:
Post Comments (Atom)
0 Response to Selecting certain observations for a graph
Post a Comment