Skip to content
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

refModels = FALSE does not skip the reference models run #200

Closed
lf-araujo opened this issue Jul 19, 2022 · 2 comments
Closed

refModels = FALSE does not skip the reference models run #200

lf-araujo opened this issue Jul 19, 2022 · 2 comments
Assignees
Labels

Comments

@lf-araujo
Copy link
Contributor

lf-araujo commented Jul 19, 2022

It's my understanding from the manual that setting the switch refModels = FALSE in umxRAM would skip reference models part, however it does not seem to work:

umx 4.10.50

library(umx)
m2 = umxRAM("big and heavy", data = mtcars, refModels = FALSE,
	# One headed paths from disp and weight to mpg
	umxPath(c("disp", "wt"), to = "mpg"),
	# Allow predictors to Covary
	umxPath("disp", with = "wt"),
	# free variances and means for each manifest
	umxPath(v.m. = c("disp", "wt", "mpg"))
)
  • The above still runs it
@tbates tbates self-assigned this Jul 20, 2022
@tbates tbates added the bug label Jul 20, 2022
@tbates
Copy link
Owner

tbates commented Jul 21, 2022

Thanks for trying this feature – fixed now!

refModels wasn't being passed through the chain from 'umxRAM' to xmu_safe_run_summary to umxSummary.MxModel

library(umx)
mtcars$litres = mtcars$disp/61.2
m1 = umxRAM("auto refs", tryHard="yes", data = mtcars,
	umxPath(v.m. = c("litres", "wt", "mpg")),
	umxPath("litres", to = "mpg"),
	umxPath("litres", with = "wt")
)
m2 = umxRAM("no refs", refModels = FALSE, tryHard="yes", data = mtcars,
	umxPath(v.m. = c("litres", "wt", "mpg")),
	umxPath("litres", to = "mpg"),
	umxPath("litres", with = "wt")
)
plot(m2, std = T, means = FALSE)

image

@tbates
Copy link
Owner

tbates commented Jul 21, 2022

@lf-araujo

@tbates tbates closed this as completed Jul 21, 2022
tbates added a commit that referenced this issue Jul 21, 2022
update NEWS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants