Skip to content

Commit

Permalink
Make var names syntactic for lavaan
Browse files Browse the repository at this point in the history
I'll be honest, this change has been sitting in my local working directory for years and I'm not 100% sure what it's for...but I think my description here is right.
  • Loading branch information
jacob-long committed Jan 11, 2024
1 parent ebae85b commit 8b773d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/dpm.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ dpm <- function(formula, data, error.inv = FALSE, const.inv = FALSE,
mod_formula <- as.formula(mod_formula)
mf <- panelr::model_frame(mod_formula, data = pf$data)
names(mf) %just% pf$v_info$root <- make_names(names(mf) %just% pf$v_info$root)
names(mf) %just% pf$constants <- make_names(names(mf) %just% pf$constants)
pf$constants <- make_names(pf$constants)
names(mf) %just% dv <- make_names(names(mf) %just% dv)
dv <- make_names(dv)

# Quick little helper
get_raw_vars <- function(vars) {
Expand Down

0 comments on commit 8b773d6

Please sign in to comment.