R/mvProbitCoefNames.R

Defines functions mvProbitCoefNames

mvProbitCoefNames <- function( nDep, nReg ) {
   result <- c( 
      paste( "b", rep( 1:nDep, each = nReg ), rep( 0:(nReg-1), nDep ), 
         sep = "_" ),
      matrix( paste( "R", rep( 1:nDep, each = nDep ), rep( 1:nDep, nDep ),
         sep = "_" ), nrow = nDep )[ lower.tri( diag(nDep) ) ] )
   return( result )
}

Try the mvProbit package in your browser

Any scripts or data that you put into this service are public.

mvProbit documentation built on March 4, 2020, 3 p.m.