Description Usage Arguments Value Author(s) References See Also Examples
test.varcomp
tests whether certain variance components are zeros.
This function provides a formula interface to the rlr.test
function.
1 2 3 |
fixed |
a two-sided formula specifying the response and the fixed effects. |
random |
a one-sided formula specifying the random effects (not including the error term). |
test |
an integer vector of the indices of random effects to be tested. |
data |
an optional data frame, list or environment containing the variables in the model. |
Sigma |
an optional list of symmetric and positive definite matrices specifying
the correlation structures of random effects.
If |
type |
|
nsim |
number of simulations from the null distribution. |
seed |
a seed to be set before simulating from the null distribution. |
keep.matrices |
whether the design matrices for fixed effects and random effects, as well as the response vector, will be returned. |
A list containing the following components:
RLRT |
A vector of the test statistic and the p-value of restricted likelihood ratio test. |
GFT |
A vector of the test statistic and the p-value of generalized F-test. |
Y |
If |
X |
If |
Z |
If |
Sigma |
If |
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 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.