mtcars$cyl <- factor(mtcars$cyl)
m <- VGAM::vglm(cyl ~ qsec,
family = VGAM::multinomial(), data = mtcars)
mt <- modelTest(m)
APAStyler(mt)
APAStyler(mt, OR = FALSE)
## clean up
rm(m, mt, mtcars)
if (FALSE) {
mtcars$cyl <- factor(mtcars$cyl)
mtcars$am <- factor(mtcars$am)
m <- VGAM::vglm(cyl ~ qsec,
family = VGAM::multinomial(), data = mtcars)
APAStyler(modelTest(m))
m <- VGAM::vglm(cyl ~ scale(qsec),
family = VGAM::multinomial(), data = mtcars)
APAStyler(modelTest(m))
m2 <- VGAM::vglm(cyl ~ factor(vs) * scale(qsec),
family = VGAM::multinomial(), data = mtcars)
APAStyler(modelTest(m2))
m <- VGAM::vglm(Species ~ Sepal.Length,
family = VGAM::multinomial(), data = iris)
APAStyler(modelTest(m))
set.seed(1234)
sampdata <- data.frame(
Outcome = factor(sample(letters[1:3], 20 * 9, TRUE)),
C1 = rnorm(20 * 9),
D3 = sample(paste0("L", 1:3), 20 * 9, TRUE))
m <- VGAM::vglm(Outcome ~ factor(D3),
family = VGAM::multinomial(), data = sampdata)
APAStyler(modelTest(m))
m <- VGAM::vglm(Outcome ~ factor(D3) + C1,
family = VGAM::multinomial(), data = sampdata)
APAStyler(modelTest(m))
}
Run the code above in your browser using DataLab