-
Login or Register
- Log in with
sysuse auto
// Straight lines
regress price i.foreign##c.mpg
margins foreign, at(mpg = (10 15 20 25 30 35 40))
marginsplot
// Curves
regress price i.foreign##c.mpg##c.mpg
margins foreign, at(mpg = (10 15 20 25 30 35 40))
marginsplot
sysuse auto
// Straight lines
regress price i.foreign##c.mpg
margins foreign, at(mpg = (10 15 20 25 30 35 40))
marginsplot
// Curves
regress price i.foreign##c.mpg##c.mpg
margins foreign, at(mpg = (10 15 20 25 30 35 40))
marginsplot
sysuse auto probit foreign c.mpg // Curved margins , at(mpg = (10(10)40)) marginsplot // Straight margins , at(mpg = (0(0.001)0.004)) marginsplot
Comment