In multiparameter problems, information sharing across parameters
can be used to improve the power of statistical hypothesis tests, thereby
providing smaller FABInference
package provides information sharing in linear and
generalized linear regression models using a syntax similar to the
built-in R functions lm
and glm
.
Suppose you want to get FAB
[
y_i = \alpha_0 + \alpha_1 w_{i,1} + \alpha_2 w_{i,2} + \beta_1 x_{i,1} + \cdots + \beta_p x_{i,p} + \epsilon_i,
]
where
-
column-bind the
$x$ -variables into an$n\times p$ matrixX
, e.g.X<-cbind(x1,x2,x3)
; -
run the command
fit<-lmFAB(y~w1+w2,X)
.
The output is similar to the output of the lm
command, so you can
type summary(fit)
to see the FAB fit$FABpv
and fit$FABci
.
If fit<-lmFAB(y~w1+w2,X,~v1+v2)
, where v1
and v2
are
FAB inference for generalized linear models can be obtained similarly
using the command glmFAB
. In this case, the glmFAB
is much faster than using lmFAB
because the former uses
an asymptotic approximation.
In the simplest case of a normally distributed estimator
[ p_{FAB}(\hat\theta,a) = 1- | \Phi(\hat\theta+2a) - \Phi(-\hat\theta) |, ]
where
# Release version on CRAN
install.packages("FABInference")
# Development version on GitHub
devtools::install_github("pdhoff/FABInference")
"Smaller p-values via indirect information". P.D. Hoff. arXiv:1907.12589 Journal of the American Statistical Association, to appear.
"Smaller p-values in genomics studies using distilled historical information". arXiv:2004.07887 J.G. Bryan and P.D. Hoff. Biostatistics, to appear.
"Exact adaptive confidence intervals for small areas". K. Burris and P.D. Hoff. arXiv:1809.09159 Journal of Survey Statistics and Methodology, 8(2):206–230, 2020.
"Exact adaptive confidence intervals for linear regression coefficients". P.D. Hoff and C. Yu. arXiv:1705.08331 Electronic Journal of Statistics, 13(1):94–119, 2019.
"Adaptive multigroup confidence intervals with constant coverage". arXiv:1612.08287 C. Yu and P.D. Hoff. Biometrika, 105(2):319–335, 2018.
-
Small area estimation Replication file for Hoff(2019)
-
Hidden Markov model Replication file for Hoff(2019)
-
Linear model interactions Replication file for Hoff(2019)
-
Logistic regression Replication file for Hoff(2019)