Description Usage Arguments Value Author(s) References See Also Examples
View source: R/test.additivity.R
test.additivity
tests for additive model in nonparametric regression
using mixed model representation and variance components testing.
1 2 3 | test.additivity(x, y, type = "RLR",
nbasis = 10L, kernel = c("gaussian", "polynomial", "spline"),
nsim = 5000L, seed = 130623L)
|
x |
design matrix. Each column should be scaled to have range within |
y |
response vector. |
type |
|
nbasis |
number of basis functions in additive modeling. |
kernel |
reproducing kernel for non-additive modeling. |
nsim |
number of simulations from the null distribution. |
seed |
a seed to be set before simulating from the null distribution. |
A vector of test statistic and p-value.
Yichi Zhang
Zhang, Y., Staicu, A.-M., and Maity, A. (2016). Testing for additivity in non-parametric regression. Canadian Journal of Statistics, 44: 445-462. doi: 10.1002/cjs.11295
1 2 3 4 |
RLRT.stat.obs RLRT.p.value GFT.stat.obs GFT.p.value
4.834003 0.020000 8.283858 0.073600
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.