I'm creating a marginsplot graph for a probit model estimating predicted probabilities. Some of the confidence intervals are below 0 or above 1, which means the y-axis' range is from around -.5 to 1.5. I want to force the y-axis to range from 0 to 1. If I was making a regular twoway graph I would limit the range of observations using an if condition, but I'm not sure how to go about doing that for confidence intervals on a marginsplot graph.
I've attached two pngs, one showing the graph without confidence intervals and one showing the graph with confidence intervals. Effectively, what I want is to display the confidence intervals, but have them cut off at 0,1 so that the y axis looks like the one in the graph without confidence intervals.Array Array
Any help is appreciated.
Related Posts with Limiting the y-axis on a marginsplot graph
sureg compare COX time-to-event regression comparison between 2 groupsHi, first post, my mentor told me to run 'sureg' to compare my estimates from two COX regressions sp…
How can check the assumption for survival analysis with Schoenfeld residual method in Complex survey designHello, My data is the national health survey with a complex survey design. I want to analyse the as…
coefplot helpHi all, I am newer to Stata, using coefplot. Ive looked at coefplot help which has given me a good o…
P for trend in MV regressionhi all, basic question - if I am running an MV regression as below, where can I find the "P for tren…
Generating and exporting summary table to ExcelHello, I am trying to produce a table that offers some summary statistics (Ns and %s, and averages, …
Subscribe to:
Post Comments (Atom)
0 Response to Limiting the y-axis on a marginsplot graph
Post a Comment