Heteroskedastic tobit model Description Estimates tobit models with heteroskedasticity. Test ordinary tobit models for heteroskedasticity. Package contains 3 public functions: tobithetm_estimate(GUI), htobit(script) and tobithetm_print. GUI path (main) Model -> Limited dependent variables -> Heteroskedastic tobit NEWS in v. 0.4 is at the bottom of the file List of public functions tobithetm_estimate Usage function bundle tobithetm_estimate (series y "dependent variable", list X "list of independent variables", list W[null] "list of heteroskedasticity variables") This function estimates heteroskedastic tobit model with heteroskedasticity term sigma^2 = exp(alpha*w) where w are some variables. By default, w are the same as regressors including constant. If W list doesn't include constant, the function adds it by default. A second goal of this function is to provide LR test for heteroskedasticity for ordinary tobit model estimated by tobit y X, where y and X are the same as in tobithetm_estimate(y, X,...). In contrast with previous versions, it uses principal components of variance model regressors instead of standardizing them. This innovation has two effects: - along with using better initial values it allowed for better time performance and better mle convergence reliability Variance model coefficients outputted in the terms of actual data The current version deals with only simple tobit model, left-censored at zero. It is intended for GUI. For the sake of backward compatibility it can also be used in scripts. Output is a bundle b: b["model"] = "hettobit" b["coefmat"] = regression coefficients and their s.e. b["coeff"] = regression coefficients b["coefnames"] = names of regression coefficients b["hetmat"] = heteroskedasticity model coefficients and theirs s.e. b["sigma"] = tobit sigma evalueted at means of variables b["hetnames"] = names of heteroskedasticity model coefficients b["depvname"] = name of the dependent variable b["t1"] = starting observation b["t2"] = last observation b["lnl"] = log-likelihood b["aic"] = aic b["bic"] = bic b["hqc"] = hqc b["leftc"] = number of left censored observations b["hetlrstat"] = chi-squared statistics for a LR heteroskedasticity test b["het_df"] = df number for the heteroskedasticity model b["hetpval"] = p-value for LR heteroskedasticity test b["vcv"] = covariance matrix for regression coefficients b["bigvcv"] = covariance matrix for all estimated coefficients b["yhat"] = yhat as in the native tobit command b["uhat"] = generalized residuals, compatible with tobit command $uhat For regression with constant only b["lrchisq"] = chi-squared statistics for the model significance testing in contract with the native tobit command it is LR-test b["df_all"] = df for chi-squared above b["pval"] = p-value for the above test function bundle htobit (series y "dependent variable", list X "list of independent variables", list W[null] "list of heteroskedasticity variables", bool prn[1] "whether to print results") It is the script version of tobithetm_estimate. It calls tobithetm_print from inside. Printing can be suppressed by setting prn = 0. tobithetm_print prints the results in the form similar to that of tobit command Usage function void tobithetm_print (bundle *b) Bundle b can be produced by tobithetm_estimate(), or by htobit() NEWS in v. 0.4 - better time performance and more reliable convergence for mle - GUI and script version are divided: for a script version it is more convenient print directly, also it has much shorter name Refefences Gretl User's Guide Greene William H. (2003). Econometric Analysis, Upper Saddle River, NJ: Prentice-Hall, fifth edn. Maddala, G. (1983). Limited Dependent and Qualitative Variables in Econometrics. New York: Cambridge University Press.