看手册里面的例子,模仿去做吧
help reg3 dialog: reg3
also see: reg3 postestimation
-----------------------------------------------------------------------------------------------------------------
Title
[R] reg3 -- Three-stage estimation for systems of simultaneous equations
Syntax
Basic syntax
reg3 (depvar1 varlist1) (depvar2 varlist2) ...(depvarN varlistN) [if] [in] [weight]
Full syntax
reg3 ([eqname1:]depvar1a [depvar1b ...=]varlist1 [, noconstant])
([eqname2:]depvar2a [depvar2b ...=]varlist2 [, noconstant])
...
([eqnameN:]depvarNa [depvarNb ...=]varlistN [, noconstant])
[if] [in] [weight] [, options]
options description
-----------------------------------------------------------------------------------------------------------
Model
ireg3 iterate until estimates converge
constraints(constraints) apply specified linear constraints
Model 2
exog(varlist) exogenous variables not specified in system equations
endog(varlist) additional right-hand-side endogenous variables
inst(varlist) full list of exogenous variables
allexog all right-hand-side variables are exogenous
noconstant suppress constant from instrument list
Est. method
3sls three-stage least squares; the default
2sls two-stage least squares
ols ordinary least squares (OLS)
sure seemingly unrelated regression estimation(SURE)
mvreg sure with OLS degrees-of-freedom adjustment
corr(correlation) unstructured or independent correlation structure; default is unstructured
df adj.
small report small-sample statistics
dfk use small-sample adjustment
dfk2 use alternate adjustment
Reporting
level(#) set confidence level; default is level(95)
first report first-stage estimates
nocnsreport do not display constraints
display_options control spacing and display of omitted variables and base and empty cells
Optimization
optimization_options control the optimization process; seldom used
+ noheader suppress display of header
+ notable suppress display of coefficient table
+ nofooter suppress display of footer
+ coeflegend display coefficients' legend instead of coefficient table



雷达卡


京公网安备 11010802022788号







