9.2 Type II Tobit
Mathematical representation
(9.2) |
with:
(9.3) |
- the model is estimated using observations, for of which the outcome variable is observed () and for the remaining the outcome variable is missing ()
- is the value of the dependent variable in the outcome equation for observation and it is observed only if
- is the value of the latent dependent variable in the selection equation for observation
- is a vector that stores the values of the independent variables in the outcome equation for observation
- is an vector that stores the values of the independent variables in the selection equation for observation
- the same variable could appear in both and
- is a vector of parameters
- is an vector of parameters
- is the precision matrix of the error vector, and is the covariance matrix of the error vector
- is the variance of conditional on
- is the covariance of and
Priors
Parameter | Probability density function | Default hyperparameters |
, | ||
, | ||
, | ||
, | ||
Because is a variance parameter, a Gamma prior is placed on the corresponding precision parameter, . This is equivalent to placing and inverse-Gamma prior on directly. |
The prior for depends on the value of : given , follows a Normal distribution with mean and precision . This is done so that the prior uncertainty around scales along with the prior uncertainty around . |
Syntax
where:
- y is the dependent variable name in the outcome equation, as it appears in the dataset used for estimation
- x1 x2 xK is a list of the independent variable names in the outcome equation, as they appear in the dataset used for estimation; when a constant term is to be included in the model, this must be requested explicitly
- z1 z2 zL is a list of the independent variable names in the selection equation, as they appear in the dataset used for estimation; when a constant term is to be included in the model, this must be requested explicitly
The dependent variable, y, in the dataset used for estimation must contain both numerical values and missing values (“nans"). The values of the variables in the x list are not used during estimation and they could be missing. However, observations with missing values in the z list are dropped prior to estimation. |
The optional arguments for the type II Tobit model are:2
Gibbs parameters
| |
"chains" | number of chains to run in parallel (positive integer); the default value is 1 |
"burnin" | number of burn-in draws per chain (positive integer); the default value is 10000 |
"draws" | number of retained draws per chain (positive integer); the default value is 20000 |
"thin" | value of the thinning parameter (positive integer); the default value is 1 |
"seed" | value of the seed for the random-number generator (positive integer); the default value is 42 |
Hyperparameters
| |
"m_beta" | mean vector of the prior for ( vector); the default value is |
"P_beta" | precision matrix of the prior for ( symmetric and positive-definite matrix); the default value is |
"m_delta" | mean vector of the prior for ( vector); the default value is |
"P_delta" | precision matrix of the prior for ( symmetric and positive-definite matrix); the default value is |
"a_xi" | shape parameter of the prior for (positive number); the default value is |
"b_xi" | rate parameter of the prior for (positive number); the default value is |
"m_gamma" | mean of the prior for ; the default value is |
"t_gamma" | precision scaling parameter of the prior for (positive number); the default value is |
Dataset and log-marginal likelihood
| |
"dataset" | the id value of the dataset that will be used for estimation; the default value is the first dataset in memory (in alphabetical order) |
"logML_CJ" | boolean indicating whether the Chib (1995)/Chib & Jeliazkov (2001) approximation to the log-marginal likelihood should be calculated (truefalse); the default value is false |
Reported Parameters
| variable_name | vector of parameters associated with the independent variables in the outcome equation |
| variable_name | vector of parameters associated with the independent variables in the selection equation |
| xi | conditional variance parameter of the error term in the outcome equation, |
| gamma | covariance of the error terms in the outcome and selection equations |
| sigma_e | standard deviation of the error term in the outcome equation: |
| rho | correlation coefficient between the error terms in the outcome and selection equations: |
Stored values and post-estimation analysis
If a left-hand-side id value is provided when a type II Tobit model is created, then the
following results are saved in the model item and are accessible via the ‘.’ operator:
Samples | a matrix containing the draws from the posterior of , , and |
y$x1,,y$xK | vectors containing the draws from the posterior of the parameters associated with variables x1,,xK (the names of these vectors are the names of the variables that were included in the right-hand side of the outcome equation of the model, prepended by y$, where y is the name of the dependent variable; this is done so that the samples on the parameters associated with a variable that appears in both x and z lists can be distinguished) |
s$z1,,s$zL | vectors containing the draws from the posterior of the parameters associated with variables z1,,zL (the names of these vectors are the names of the variables that were included in the z list, in the right-hand side of the selection equation of the model, prepended by s$; this is done so that the samples on the parameters associated with a variable that appears in both x and z lists can be distinguished) |
xi | vector containing the draws from the posterior of |
gamma | vector containing the draws from the posterior of |
logML | the Lewis & Raftery (1997) approximation of the log-marginal likelihood |
logML_CJ | the Chib (1995)/Chib & Jeliazkov (2001) approximation to the log-marginal likelihood; this is available only if the model was estimated with the "logML_CJ"=true option |
nchains | the number of chains that were used to estimate the model |
nburnin | the number of burn-in draws per chain that were used when estimating the model |
ndraws | the total number of retained draws from the posterior (chains draws) |
nthin | value of the thinning parameter that was used when estimating the model |
nseed | value of the seed for the random-number generator that was used when estimating the model |
Additionally, the following functions are available for post-estimation analysis (see section B.14):
- diagnostics()
- test()
- pmp()
- mfx()
Usually the marginal effects of primary importance in a type II Tobit model are the effects of changes in the independent variables in the outcome equation on the expected value of the dependent variable in the same equation, for the entire population (whether selected or not). These effects, at least for variables included linearly in the model, are the corresponding s. Nevertheless, there are two additional types of marginal effects that could be of interest and which are not linear functions of the model’s parameters. The type II Tobit model uses the mfx() function to calculate and report the marginal effects of:
- the variables in the z list on the probability of selection:
- the variables in the x list on the expected value of the response variable for the part of the population that is selected3:
The two types of marginal effects can be requested by setting the "type" argument of the mfx() function equal to 1 or 3. The generic syntax for a statement involving the mfx() function after estimation of a type II Tobit model is:
and:
for calculation of the marginal effects on and on . The default value of the "type" option is 1. See the general documentation of the mfx() function (section B.14) for details on the other optional arguments.
Examples
Example 1
myData.constant = ones(rows(myData), 1);
tobitII( y2 ~ constant x1 x2 x3 x4 | constant x1 x2 x3 z1 z2 );
Example 2
myData.constant = ones(rows(myData), 1);
myModel = tobitII( y2 ~ constant x1 x2 x3 x4 | constant x1 x2 x3 x4 z1 z2,
"m_beta"=ones(5,1), "P_beta" = 0.1*eye(5,5),
"m_delta"=ones(7,1), "P_delta" = 0.1*eye(7,7),
"a_xi"=0.01, "b_xi"=0.01, "m_gamma"=0.0, "t_gamma"=0.1,
"burnin"=10000, "draws"=40000, "thin"=4, "chains"=2,
"logML_CJ" = true, "dataset"=myData);
diagnostics("model"=myModel);
mfx("type"=1,"point"="mean","model"=myModel);
mfx("type"=2,"point"="mean","model"=myModel);