-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pretty_names = TRUE
do not fully work for "repeated rows"
#723
Labels
3 investigators ❔❓
Need to look further into this issue
Comments
A question on Indeed, I see that model <- t.test(iris$Sepal.Width, iris$Sepal.Length)
mmp <- model_parameters(model)
attr(mmp, "pretty_names") <- "mpg"
mmp |> print_md()
Error in `$<-.data.frame`(`*tmp*`, "Parameter", value = character(0)) :
replacement has 0 rows, data has 1 as the model <- t.test(mtcars$mpg ~ mtcars$vs)
mmp <- model_parameters(model)
attr(mmp, "pretty_names") <- "mpg"
mmp |> print_md()
Table: Welch Two Sample t-test
|Parameter | Group | mtcars$vs = 0 | mtcars$vs = 1 | Difference | 95% CI | t(22.72) | p |
|:----------|:---------:|:-------------:|:-------------:|:----------:|:---------------:|:--------:|:------:|
|mtcars$mpg | mtcars$vs | 16.62 | 24.56 | -7.94 | (-11.46, -4.42) | -4.67 | < .001 | has no effect. Then, my question is if is it some place where it is specified for which models |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the table outputs of the next reprex, we should see
Indirect Effect (ACME)
in each file whereACME
appears and the same forDirect Effect (ADE)
withADE
, however, for each table they only appear in the firstACME
/ADE
rows. In particular I added the lineattr(m, "pretty_names") <- c(attr(m20, "pretty_names"), attr(m70, "pretty_names"))
to be sure thepretty_names
are for all the involved rows.control
treated
average
Total Effect
Created on 2022-06-02 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: