Hello all,
I'm trying to figure out a way to export the absolutely beautiful regression tables produced by the jmv package, but with no luck. All of the models produced by jmv are listed under the Values part of the environment, as <object containing active binding>
. As such, it won't let me convert it into a data frame or tibble so that I can export it to excel.
Does anyone know how I can get my logistic and linear regression models specifically from this package out of RStudio? Code below
Model1=logRegBin(data = data,
dep = Accept_Reject,
factors = vars(Guilt, TP, Discount, Sex, Race),
blocks = list(list("Sex","Race"),list("Discount","TP","Guilt")),
refLevels = list(list(
var="Accept_Reject",
ref="0"),
list(
var="Guilt",
ref="0"),
list(
var="TP",
ref="0"),
list(
var="Discount",
ref="0"),
list(
var="Sex",
ref="1"),
list(
var="Race",
ref="1")),
pseudoR2 = c("r2n"),
OR = TRUE,
ciOR = TRUE,
collin = FALSE)
> Model1=Model1$asDF
Error: This results group cannot be converted to a data frame.
Perhaps you mean to access some of it's children:
...$modelFit$asDF
...$modelComp$asDF
...$models$asDF
> Model1=Model1$models$asDF
Error: This results array cannot be converted to a data frame.
Perhaps you mean to access some of it's children:
...[[1]]$asDF
...[[2]]$asDF
...[[3]]$asDF
> Model1=Model1$models$[[1]]$asDF
Error: unexpected '[[' in "Model1=Model1$models$[["
> summary(Model1)
Length Class Mode
modelFit 71 Table environment
modelComp 71 Table environment
models 2 Array environment