opsr_check_start function

Check the User-Specified Starting Values

Check the User-Specified Starting Values

This is a utility function, used in opsr and should not be used directly. It is included here to document the expected structure of opsr's start argument. Makes sure, the start vector conforms to the expected structure. Adds the expected parameter names to the numeric vector. Therefore the user has to conform to the expected order. See 'Details' for further explanation.

opsr_check_start(start, W, Xs)

Arguments

  • start: vector of starting values.
  • W: matrix with explanatory variables for selection process.
  • Xs: list of matrices with expalanatory varialbes for outcome process for each regime.

Returns

Named numeric vector conforming to the expected structure.

Details

Expected order: 1. kappa threshold parameters (for ordinal probit model), 2. parameters of the selection process (names starting with s_), 3. parameters of the outcome processes (names starting with o[0-9]_), 4. sigma, 5. rho. If the same outcome process specification is used in the formula, the starting values have to be repeated (i.e., the length of the start vector has to correspond to the total number of estimated parameters in the model).

See Also

opsr_2step

  • Maintainer: Daniel Heimgartner
  • License: GPL (>= 3)
  • Last published: 2024-11-01