Description Usage Arguments Value
View source: R/inference_triangles.R
Compute specification test based on transitive triangles
1 2 3 4 5 6 7 | triangle_test(fit_ML, fit_ttest_theta, gammaS = fit_ML$gammaS_hat,
gammaR = fit_ML$gammaR_hat, theta = fit_ML$theta_hat,
rho = fit_ML$rho_hat_MLE, rho0 = 0, bs_iterations = 200,
alpha = 0.1, bias_estimator = "theorem2", bs_inference = "none",
trimming_bound = 0, bs_trimming_bound = trimming_bound,
force_robust = FALSE, bs_force_robust = force_robust,
compute_other_variances = FALSE)
|
fit_ML |
returned object from ML estimation ( |
fit_ttest_theta |
fitted |
gammaS |
vector of sender effects (default: estimated value in |
gammaR |
vetor of receiver effects (default: estimated value in |
theta |
value used for θ (default: estimated value in |
rho |
value used for ρ (default: estimated value in |
rho0 |
value of theta under null hypothesis (default: zero/test significance) |
bs_iterations |
number of bootstrap iterations |
alpha |
alpha used to compute bootstrap critical values |
bias_estimator |
specify estimator of bias term
|
bs_inference |
specify what kind of bootstrap is used to determine whether the test rejects
|
trimming_bound |
specify trimming of probabilities used to compute statistics |
bs_trimming_bound |
specify trimming of probabilities used in simulation of bootstrap distribution |
force_robust |
logical, don't use speedglm |
bs_force_robust |
logical, don't use speedglm in simulation of bootstrap distribution |
compute_other_variances |
logical, force computation of standard errors for infeasible triangle tests |
list with test statistic, rejection and auxilary output
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.