Nothing
elas.npregHom <- function( object, data = NULL, yObs = FALSE, ... ) {
if( is.null( data ) ) {
data <- eval( object$call$data )
}
if( yObs ) {
yValues = data[[ object$yName ]]
} else {
yValues <- fitted( object$est )
}
result <- as.data.frame( matrix( NA, nrow = nrow( object$grad ),
ncol = ncol( object$grad ) ) )
names( result ) <- colnames( object$grad )
for( i in colnames( object$grad ) ) {
if( is.factor( data[[ i ]] ) ) {
result[[ i ]] <- NULL
} else {
result[[ i ]] <- object$grad[ , i ] * data[[ i ]] / yValues
}
}
return( result )
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.