Skip to content

Instantly share code, notes, and snippets.

@tbates
Created October 29, 2012 18:32
Show Gist options
  • Save tbates/3975527 to your computer and use it in GitHub Desktop.
Save tbates/3975527 to your computer and use it in GitHub Desktop.
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