Created
October 29, 2012 18:32
-
-
Save tbates/3975527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (identical(options[["Standard Errors"]], "Yes") && | |
identical(options[["Calculate Hessian"]], "No")) { | |
msg <- paste('The "Standard Errors" option is enabled and', | |
'the "Calculate Hessian" option is disabled. Generating', | |
'standard errors requires the Hessian calculation. Please', | |
'disable standard errors or enable the Hessian calculation.\n', | |
'You can do this with\n', | |
'model <- mxOption(model, "Standard Errors", "No")\n', | |
'or\n', | |
'model <- mxOption(model, "Calculate Hessian", "Yes")' | |
) | |
stop(msg, call. = FALSE) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment