View source: R/20241206_simulation_function_edit.R
simulation.hetero | R Documentation |
Monte Carlo simulation to study the size and power properties of the uniform test for heterogeneity of threshold effects under known threshold locations. Provides the Monte Carlo distribution of the test statistic and empirical rejection probabilities at 10%, 5% and 1% level.
simulation.hetero(
N,
TL,
p,
M,
epsilon = c("iid", "factor"),
running = c("iid", "factor"),
hetero = c(0, 1)
)
N |
cross-sectional dimension |
TL |
time series length |
p |
fraction of non-zero coefficients |
M |
number of Monte Carlo runs |
epsilon |
specification of error term. If |
running |
specification of running variable. If |
hetero |
if |
A list containing the value of the test statistic for each Monte Carlo run and the empirical rejection rate for a 10%, 5% and 1% confidence level.
result_hetero = simulation.hetero(10, 200, 0, 10, epsilon = "iid",
running = "iid", hetero = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.