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
Testing the Equality of the Regression Coefficients After PPMLHDFEI tried to estimate a PPML gravity model of bilateral trade with country-time fixed effects by -ppml…
Help with StrposHi there,
In the code below my goal is to convert the local below into a neat list by converting "R…
two-y-axeshello, I try to show my results based on two y-axes but the results are not satisfactory in the grap…
Bayesian multilevel parametric survival modelHi, I'm trying to figure out if a Bayesian multilevel parametric survival model can fit for the foll…
Creating a rate grouped by another variableHello,
I have a large dataset (27 vars, 1,048,575 obs) that contains data on malaria insecticide t…
Subscribe to:
Post Comments (Atom)
0 Response to Limiting the y-axis on a marginsplot graph
Post a Comment