niceout | R Documentation |
Outputs nicely-formatted regression tables in html format, containing standardised and unstandardised regression coefficients with SEs, p values, t statistics, F statistics, R-squared and R-squared change for regression models.
niceout(
mids,
filename,
outcome,
predictors1,
predictors2,
predictors3 = NULL,
filepath = NULL
)
mids |
mids object, a multiply-imputed dataset generated from mice |
filename |
character vector, specify the name of the file (without extension) |
outcome |
character vector, specifying the name of the response variable in the dataset |
predictors1 |
character vector, predictors in Step 1 of regression |
predictors2 |
character vector, predictors in Step 2 of regression |
predictors3 |
(OPTIONAL) character vector, predictors in Step 3 of regression |
filepath |
string, specify full path to output directory in the format "~/directory/subdirectory/" |
mids <- mice::mice(mice::nhanes, m=5, maxit=1)
niceout(mids,"Hierarchical_regression_1",
outcome = "hyp",
predictors1 = c("age", "bmi"),
predictors2 = c("age", "bmi","chl"),
filepath = "D:/Desktop/")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.