Description Usage Arguments Details Value Note Author(s) References See Also Examples
Computes estimates, standard errors, and confidence intervals of parameters in the threshold regression model.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
df |
Data frame. |
yi |
Integer or character; index or column name of dependent (y)
variable in |
xi |
Integer or character vector; indexes or column names of
independent (x) variables in |
qi |
Integer or character; index or column name of threshold (q)
variable in |
h |
Integer; heteroskedasticity indicator.
Set |
test.pvalue |
Numeric; p-value of the threshold test returned by
|
var.names |
Character vector; variable names with
|
conf2 |
Numeric; confidence level for first step of two-step
confidence regions for regression parameters. Default is |
nonpar |
Integer; indicator for non-parametric method used to estimate
nuisance scale in the presence of heteroskedasticity
(only relevant if |
graph |
Logical; graph indicator.
Set |
signif.level |
Character; indicator for notation of statistical
significance levels.
Set |
inf.crit |
Logical; if |
digits |
Integer; number of decimal places to be used for estimated
coefficients in threshold regression table. Default is |
integer.digits |
Integer; number of integer digits (i.e. digits before
the decimal point) to be used for estimated coefficients in threshold
regression table. If |
digits.thr |
Integer; number of decimal places to be used for threshold
estimate in threshold regression table. Default is
|
header |
Character; header to be used in threshold regression table. |
output.short |
Logical; if |
signif.legend |
Logical; if |
Do not include a constant in the independent variables; the function automatically adds an intercept to the regression.
Least squares estimate of threshold parameter. Output is printed to
console unless redirected to file with sink
(see examples).
Load these packages in LaTeX file:
\usepackage{booktabs} \usepackage[table]{xcolor} \usepackage{siunitx}
.
If signif.level = "colors"
, add these commands in LaTeX file
to obtain red and blue tones:
\newcommand{\RedA}{red} \newcommand{\RedB}{red!60}
\newcommand{\RedC}{red!30} \newcommand{\BlueA}{blue!75}
\newcommand{\BlueB}{blue!55} \newcommand{\BlueC}{blue!30}
.
Marcel Kremer, marcel.kremer@uni-due.de
Bruce E. Hansen, behansen@wisc.edu
Hansen, B. E. (2000). Sample splitting and threshold estimation. Econometrica, 68(3):575–603. https://doi.org/10.1111/1468-0262.00124. https://www.ssc.wisc.edu/~bhansen/papers/ecnmt_00.pdf.
thr_test_hom
and thr_test_het
for threshold
tests under homoskedasticity and heteroskedasticity, respectively.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.