vcov.mvoprobit {switchSelection}R Documentation

Calculate Variance-Covariance Matrix for a mvoprobit Object.

Description

Return the variance-covariance matrix of the parameters of mvoprobit model.

Usage

## S3 method for class 'mvoprobit'
vcov(
  object,
  ...,
  type = object$cov_type,
  regime = NULL,
  n_cores = object$other$n_cores,
  n_sim = object$other$n_sim
)

Arguments

object

an object of class mvoprobit.

...

further arguments (currently ignored).

type

character representing the type of the asymptotic covariance matrix estimator. If estimator argument of mvoprobit is "ml" then type may be changed to any value available for input argument cov_type of mvoprobit. Otherwise type will coincide with cov_type output value of mvoprobit.

regime

non-negative integer representing the regime of the two-step procedure for which covariance matrix should be returned. If estimator = "2step" and regime = NULL or is.na(regime) then covariance matrix of the first step parameters' estimator will be returned. Otherwise the function estimates covariance matrix for the second step parameters associated with corresponding regime.

n_cores

positive integer representing the number of CPU cores used for parallel computing. If possible it is highly recommend to set it equal to the number of available physical cores especially when the system of ordered equations has 2 or 3 equations.

n_sim

integer representing the number of GHK draws when there are more than 3 ordered equations. Otherwise alternative (much more efficient) algorithms will be used to calculate multivariate normal probabilities.

Details

Argument type is closely related to the argument cov_type of mvoprobit function. See 'Details' and 'Usage' sections of mvoprobit for more information on cov_type argument.

Value

Returns numeric matrix which represents estimate of the asymptotic covariance matrix of model's parameters.


[Package switchSelection version 1.1.2 Index]