Description Usage Arguments Value Examples
Tests the hypothesis that a subset of the regression coefficients are fixed
at a reference value. Specifically, let β denote the regression
coefficient. Partition β=(β_{1},β_{2}). Suppose that
interest lies in testing that β_{1} is fixed at β_{10}.
Score
performs a score test of H_{0}:β_{1}=β_{10}. The
test is specified using a logical vector L
, with as many entries as
columns in the model matrix X
. The values of L
set to T
are constrained under the null, while values of L
set to F
are
estimated under the null.
1 2 |
y |
Numeric response vector. |
X |
Numeric model matrix. |
L |
Logical vector, with as many entires as columns in the model matrix, indicating which columns have fixed coefficients under the null. |
b10 |
Value of the regression coefficient for the selected columns under the null. Defaults to zero. |
method |
Either "asymptotic" or "perturbation". |
B |
Score perturbations. |
parallel |
Run in parallel? Must reigster parallel backend first. |
A numeric vector containing the score statistic, the degrees of freedom, and a p-value.
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.