R/linearPredictors.R

Defines functions linearPredictors.probit linearPredictors

Documented in linearPredictors linearPredictors.probit

linearPredictors <- function( x, ... ) {
    UseMethod("linearPredictors")
}

linearPredictors.probit <- function( x, ... ) {
   mm <- naresid(na.action(x), model.matrix(x))
                           # naresid works (for now).  Should we keep it or replace it?
   result <- drop( mm %*% x$estimate )
   names( result ) <- rownames( mm )
   return( result )
}

Try the sampleSelection package in your browser

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

sampleSelection documentation built on Jan. 13, 2021, 7:49 p.m.