View source: R/test-script-2025-01-20.r
monotonicity_test | R Documentation |
Runs the test of monotonicity for a regression function.
monotonicity_test(X, Y, h = NA, m = 5, bootstrap_n = 100,
alpha = 0.05)
X |
Vector of X values. |
Y |
Vector of Y values. |
h |
Bandwidth for the kernel smoother. |
m |
Window size to calculate linear regression. |
bootstrap_n |
Desired number of bootstrap samples. |
alpha |
Desired alpha level of the test. |
T_m_value |
Value of the test statistic. |
p_val |
p-value of test |
reject |
whether the test rejects the null |
T_m_samples |
Vector of bootstrapped values of test statistic |
Emily Hsiao
Hall, Peter, and Nancy E. Heckman. "Testing for monotonicity of a regression mean by calibrating for linear functions." Annals of Statistics (2000): 20-39.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.