Skip to content

Commit

Permalink
Merge pull request #205 from datalorax/fix-#202
Browse files Browse the repository at this point in the history
fix #202
  • Loading branch information
Daniel Anderson authored Oct 19, 2021
2 parents a8fc1b7 + 68e1a42 commit 7bdd5b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# equatiomatic (development)
* New license: CC-BY
* Bug fix: If names overlap, prior version had an error with the ordering and
construction of the coefficients.
* Bug fix: Prior versions did not escape characters in multilevel models when
declaring the grouping factor (e.g., `for census_division l = 1` is now
rendered as `for census\_division l = 1`).


# equatiomatic 0.3.0
* Export new `renderEq()` and `eqOutput()` functions for working with equatiomatic with shiny.
Expand Down
2 changes: 1 addition & 1 deletion R/merMod.R
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ create_ranef_structure_merMod <- function(model, ital_vars, use_coefs,

Map(function(lhs, dist, name, index) {
paste0("\n ", lhs, " \\sim ", dist,
"\n \\text{, for ", name, " ", tolower(index), " = 1,}",
"\n \\text{, for ", escape_tex(name), " ", tolower(index), " = 1,}",
" \\dots ", "\\text{,", toupper(index), "}")
}, lhs, distributed, names(lhs), letters[seq_along(lhs) + 9])
}
Expand Down

0 comments on commit 7bdd5b0

Please # to comment.