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
String matching to create multiple variablesI need help grouping/creating variables based on string matching. For each patient, they get a new r…
Logistic regression for categorical variablesWhen running a logistic regression, I'm unable to see all the categories under my variable. For eg: …
Howe to read the data of Survey of Consumer Finances in 2019 *with STATA/SE10Hi STATA community I encounter a difficulty while I am trying to read the data of Survey of Consumer…
Problem relating to macro panelsHello folks!! I am researching on the determinants of growth of NBFI assets for N=11 countries and T…
Help with basic subsetting/sub-samplingHello! I am new to programming and need some help with basic subsetting in STATA or R. Hoping someon…
Subscribe to:
Post Comments (Atom)
0 Response to Selecting certain observations for a graph
Post a Comment