BayES BayES

9.2 Type II Tobit

Mathematical representation

yi = x iβ + 𝜀 i yi = yiifsi = 1 ifsi = 0 si = z iδ + v i si = 1ifsi > 0 0ifsi 0 (9.2)

with:

𝜀i vi N 0,Ω1 ,whereΩ1 Σ = ξ + γ2 γ γ 1 (9.3)

Priors




Parameter Probability density function Default hyperparameters



β p β = |Pβ|12 2πK2 exp 1 2 β mβ P β β mβ mβ = 0K, Pβ = 0.001 IK
δ p δ = |Pδ|12 2πL2 exp 1 2 δ mδ P δ δ mδ mδ = 0K, Pδ = 0.001 IL
ξ p 1 ξ = bξaξ Γaξ 1 ξ aξ1ebτξ a ξ = 0.001, bξ = 0.001
γ p γ|ξ = tγ ξ 12 2π12 tγ 2ξ γ mγ 2 m γ = 0, tγ = 1



PIC Because ξ is a variance parameter, a Gamma prior is placed on the corresponding precision parameter, 1 ξ. This is equivalent to placing and inverse-Gamma prior on ξ directly.

PIC The prior for γ depends on the value of ξ: given ξ, γ follows a Normal distribution with mean mγ and precision tγ ξ . This is done so that the prior uncertainty around γ scales along with the prior uncertainty around ξ.

Syntax

[<model name> = ] tobitII( y ~ x1 x2  xK | z1 z2  zL [,<options> ] );

where:

PIC 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 β (K ×1 vector); the default value is 0K

"P_beta"

precision matrix of the prior for β (K ×K symmetric and positive-definite matrix); the default value is 0.001 IK

"m_delta"

mean vector of the prior for δ (L ×1 vector); the default value is 0L

"P_delta"

precision matrix of the prior for δ (L ×L symmetric and positive-definite matrix); the default value is 0.001 IL

"a_xi"

shape parameter of the prior for 1 ξ (positive number); the default value is 0.001

"b_xi"

rate parameter of the prior for 1 ξ (positive number); the default value is 0.001

"m_gamma"

mean of the prior for γ; the default value is 0

"t_gamma"

precision scaling parameter of the prior for γ (positive number); the default value is 1

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 (true|false); 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, 𝜀i




γ

gamma

covariance of the error terms in the outcome and selection equations




σ𝜀

sigma_e

standard deviation of the error term in the outcome equation: σ𝜀 = ξ12




ρ

rho

correlation coefficient between the error terms in the outcome and selection equations: ρ = γξ12




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):

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 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:

mfx( ["type"=1] [, "point"=<point of calculation>] [, "model"=<model name>] );

and:

mfx( "type"=2 [, "point"=<point of calculation>] [, "model"=<model name>] );

for calculation of the marginal effects on Prob s = 1 and on E y|s = 1. 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 = import("$BayESHOME/Datasets/dataset8.csv"); 
myData.constant = ones(rows(myData), 1); 
 
tobitII( y2 ~ constant x1 x2 x3 x4 | constant x1 x2 x3 z1 z2 );

Example 2

myData = import("$BayESHOME/Datasets/dataset8.csv"); 
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);

2Optional arguments are always given in option-value pairs (eg. "chains"=3).

3If the k-th independent variable in the outcome equation does not appear also as an independent variable in the selection equation then its marginal effect is simply βk.

Share this content:
Facebook Twitter LinkedIn Email
© 2016–20 Grigorios Emvalomatis