R/screen.template.R

Defines functions write.screen.template All

Documented in All write.screen.template

# Pass all variables:
All <- function(X, ...) {
	rep.int(TRUE, ncol(X))
}

# screen functions must return a logical vector of length ncol(X)
screen.template <- function (Y, X, family, obsWeights, id, ...) 
{
  # library('pkg')
  if (family$family == "gaussian") {
	
  }
  if (family$family == "binomial") {

  }
  whichVariable <- rep(TRUE, ncol(X))
  return(whichVariable)
}

write.screen.template <- function(file = '', ...) {
  cat('screen.template <- function(Y, X, family, obsWeights, id, ...) {\n  # load required packages\n  # library(\'pkg\')\n  if (family$family == \'gaussian\') {\n    \n  }\n  if (family$family == \'binomial\') {\n  \n  }\n  # whichVariable is a logical vector,\n  # TRUE indicates variable will be used\n  whichVariable <- rep(TRUE, ncol(X))\n  return(whichVariable)\n}', file = file, ...)
}

Try the SuperLearner package in your browser

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

SuperLearner documentation built on May 29, 2024, 5:25 a.m.