Skip to content
Prev 315700 / 398506 Next

sem package, suppress warnings

Dear Dustin and Steve,

For some reason, I didn't see Dustin's original message.

As documented in ?sem, the warn argument to sem() covers only warnings
directly produced by the optimizer,

	"warn: if TRUE, warnings produced by the optimization function will
be printed. This should generally not be necessary, since sem prints its own
warning, and saves information about convergence. The default is FALSE."

It doesn't cover the warnings produced by sem() itself. For that, you can do
as Steve suggests, or simply set options(warn = -1). The debug argument is
FALSE by default and if TRUE prints the iteration history and some
additional information; it is irrelevant to warnings.

I hope this helps,
 John

-----------------------------------------------
John Fox
Senator McMaster Professor of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada