Code:
bysort id (foreign): asdoc sum trunk
bysort id (foreign): asdoc sum trunk
sysuse auto, clear generate id = (price<=5000) sort id foreign asdoc by id foreign: sum trunk
asdoc sum trunk, by(id foreign) bys id foreign: asdoc sum trunk
sysuse auto, clear asdoc reg price mpg, stat(aic bic) nest replace
webuse metabolic
webuse metabolic manova y1 y2 = group asdoc estimates replay, replace
sysuse auto, clear asdoc reg price mpg, stat(aic bic) nest replace
net install asdoc, from(http://fintechprofessor.com) replace
// Nested regression sysuse auto, clear asdoc reg price mpg rep78 headroom trunk weight length turn, /// replace setstars(*@.001, **@.01, ***@.05) nest // Once set, the setstars() option does not need to be re-typed. asdoc reg price mpg rep78 headroom trunk weight , /// nest
asdoc reg price mpg rep78 headroom trunk weight length turn, /// setstars(*@.001, **@.01, ***@.05) asdoc reg price mpg rep78 headroom trunk weight
setstars(*@.001, **@.01, ***@.05)
sysuse auto, clear asdoc reg price mpg rep78 headroom trunk weight length turn, replace setstars(*@.001, **@.01, ***@.05)
global save "Whatever file name"
net install asdoc, from(http://fintechprofessor.com) replace
Leave a comment: