Fru: Estimate pooled F of a model from multiply imputed data

View source: R/Fru.R

FruR Documentation

Estimate pooled F of a model from multiply imputed data

Description

Returns the F statistic of a regression model, given the response and predictor variables. Not all variables need to be tested for significance simultaneously, which allows F-testing of hierarchical regressions.

Usage

Fru(dataset, response, predictors, testpredictors)

Arguments

dataset

mids object, a multiply-imputed dataset generated from mice

response

character vector, specifying the name of the response variable in the dataset

predictors

vector, specifying the name(s) of the predictors in the dataset

testpredictors

vector, specifying the name(s) of predictors to be tested for significance

Examples

mids <- mice::mice(mice::nhanes, m=5, maxit=1)
outcome <- "hyp"
predictors <- c("age", "bmi")
testpredictors <- c("age","bmi")
F1 <- Fru(mids, outcome, predictors, testpredictors)

tim9800/bmemTOOLS documentation built on June 1, 2025, 10:08 p.m.