webuse nhanes2l, clear
describe bpsystol agegrp
summarize bpsystol agegrp
label list agegrp
regress bpsystol i.agegrp
testparm i.agegrp
test 2.agegrp = 6.agegrp
margins agegrp
marginsplot, xdimension (agegrp)
marginsplot, xdimension (agegrp) recast (bar)
marginsplot, xdimension (agegrp) recast (bar) plotopts (barwidth(.9))
marginsplot, xdimension (agegrp) horizontal recast (bar) plotopts (barwidth(.9))
marginsplot, xdimension (agegrp) horizontal recast (scatter)
marginsplot, xdimension (agegrp) horizontal recast (scatter) plotregion(margin(large))
webuse nhanes2l, clear
describe bpsystol bmi
summarize bpsystol bmi
regress bpsystol bmi
regress bpsystol c.bmi##c.bmi
test bmi bmi#bmi
margins, at(bmi=(20(10)60))
marginsplot, xdimension (at(bmi))
webuse nhanes2l, clear
describe bpsystol age hlthstat
summarize bpsystol age hlthstat
label list hlth
regress bpsystol i.hlthstat
regress bpsysto1 i.hlthstat age
regress bpsystol i.hlthstat c.age i.hlthstat#c.age
regress bpsystol i.hlthstat##c.age
regress bpsystol i.hlthstat#c.age
testparm i.hlthstat
testparm i.hlthstat#c.age
margins hlthstat
margins, at(age=(20(10)80))
margins hlthstat, at(age=(20(10)80))
marginsplot, xdimension(at(age))
marginsplot, xdimension(at(age)) bydimension(hlthstat)
marginsplot, xdimension(at(age)) graphdimension(hlthstat)
webuse nhanes2l, clear
describe highbp hlthstat
label list hlth
logistic highbp i.hlthstat
testparm i.hlthstat
margins hlthstat
marginsplot, xdimension (hlthstat)
marginsplot, xdimension (hlthstat) recast(bar)
marginsplot, xdimension (hlthstat) recast(bar) plotopts(barwidth(.9))
marginsplot, xdimension (hlthstat) horizontal recast(bar) plotopts(barwidth(.9))
marginsplot, xdimension (hlthstat) horizontal recast(scatter)
marginsplot, xdimension (hlthstat) horizontal recast(scatter) plotregion(margin(large))
webuse nhanes21, clear
describe highbp age
summarize highbp age
logistic highbp age
logistic highbp c.age
logistic highbp c.age##c.age
testparm c.age c.age#c.age
margins, at(age = (20 (10) 80))
marginsplot, xdimension(at(age))
webuse nhanes2l, clear
describe highbp age hlthstat
summarize highbp age hlthstat
label list hlth
logistic highbp age
logistic highbp age i.hlthstat
logistic highbp age i.hlthstat c.age#i.hlthstat
logistic highbp c.age##i.hlthstat
testparm i.hlthstat#c.age
margins hlthstat, at(age=(20(10) 80))
marginsplot, xdimension(at(age))
marginsplot, xdimension(at(age)) bydimension(hlthstat)
marginsplot, xdimension(at(age)) graphdimension(hlthstat)