Fru | R Documentation |
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.
Fru(dataset, response, predictors, testpredictors)
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.