File: as.statusCode.Rd

package info (click to toggle)
r-cran-openmx 2.21.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,412 kB
  • sloc: cpp: 36,577; ansic: 13,811; fortran: 2,001; sh: 1,440; python: 350; perl: 21; makefile: 5
file content (66 lines) | stat: -rw-r--r-- 3,151 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
\name{as.statusCode}
\alias{as.statusCode}

\title{Convert a numeric or character vector into an optimizer status code factor}

\usage{
as.statusCode(code)
}

\arguments{
   \item{code}{a character or numeric vector of optimizer status code}
 }

\description{
Below we provide a brief, technical description of each status code followed by
a more colloquial, less precise desciption.
   \itemize{
      \item 0,\sQuote{OK}: Optimization succeeded.  Everything seems fine.
      \item 1,\sQuote{OK/green}: Optimization succeeded, but the sequence
   of iterates has not yet converged (Mx status GREEN). This condition is only detected by
   NPSOL.  The solution is likely okay.  You might want to re-run the model
   from its final esimates to resolve this.
      \item 2,\sQuote{infeasible linear constraint}:
   The linear constraints and bounds could not be satisfied. The problem has no feasible solution.
   Right now, it should not be possible obtain this status code, so call Ripley's.
      \item 3,\sQuote{infeasible non-linear constraint}:
   The nonlinear constraints and bounds could not be satisfied. The problem may have no feasible solution.
   Sometimes this happens when your starting values do not satisfy the constraints.
   Also, optimization could not satisfy the constraints and get a better fit.
      \item 4,\sQuote{iteration limit}:
   Optimization was stopped prematurely because the iteration limit was
   reached (Mx status BLUE). You might want to rerun: \code{m1 = mxRun(m1)} or increase the
   iteration limit (see \code{\link{mxOption}}).
   The optimizer took all the steps it could and did not finish.  You can
   increase the number of steps or get better starting values.
      \item 5,\sQuote{not convex}:
   The Hessian at the solution does not appear to be convex (Mx status
   RED). There may be more than one solution to the model. See
   \code{\link{mxCheckIdentification}}.
   I would not trust this solution; it does not appear to be a good one.
   Perhaps, try \code{\link{mxTryHard}}.
      \item 6,\sQuote{nonzero gradient}:
   The model does not satisfy the first-order optimality conditions to
   the required accuracy, and no improved point for the merit function
   could be found during the final linesearch (Mx status RED).
   I would not trust this solution; it does not appear to be a good one.
   To search nearby, see \code{\link{mxTryHard}}.
      \item 7,\sQuote{bad deriv}:
   You have provided analytic derivatives. However,
   your provided derivatives differ too much from numerically
   approximated derivatives. Double check your math.
      \item 9,\sQuote{internal error}: An input parameter was invalid. The
   most likely cause is a bug in the code. Please report occurrences to
   the OpenMx developers.
      \item 10,\sQuote{infeasible start}:
   Starting values were infeasible.
   Modify the start values for one or more parameters. For instance,
   set means to their measured value, or set variances and covariances to
   plausible values. See \code{\link{mxAutoStart}} and \code{\link{mxTryHard}}.
   }
}

\seealso{
\code{\link{mxBootstrap}}
\code{\link{summary.MxModel}}
}