Description Usage Arguments Value Author(s) See Also Examples
View source: R/coef.selection.R
This function extracts coefficients from sample selection models
1 2 3 4 5 6 7 
object 
object of class 
part 
character string indicating
which parts of the coefficients to extract:

x 
object returned by 
prefix 
logical. Add a prefix to the names of the coefficients that indicates to which equation the coefficient belongs. 
digits 
numeric, (suggested) number of significant digits. 
... 
currently not used. 
coef.selection
returns a vector of the estimated coefficients.
coef.summary.selection
returns a matrix of the estimated coefficients,
their standard errors, tvalues, and pvalues.
Arne Henningsen, Ott Toomet ([email protected])
coef
, selection
, vcov.selection
,
and selectionmethods
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  ## Estimate a simple female wage model taking into account the labour
## force participation
data(Mroz87)
a < heckit(lfp ~ huswage + kids5 + mtr + fatheduc + educ + city,
log(wage) ~ educ + city, data=Mroz87)
## extract all coefficients of the model:
coef( a )
## now extract the coefficients of the outcome model only:
coef( a, part="outcome")
## extract all coefficients, standard errors, tvalues
## and pvalues of the model:
coef( summary( a ) )
## now extract the coefficients, standard errors, tvalues
## and pvalues of the outcome model only:
coef( summary( a ), part="outcome")

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.