grid.gen {sMTL}R Documentation

grid.gen: generate grid for cross-validation function. For internal package use only.

Description

grid.gen: generate grid for cross-validation function. For internal package use only.

Usage

grid.gen(
  y,
  p,
  study = NA,
  lambda_1 = TRUE,
  lambda_2 = FALSE,
  lambda_z = TRUE,
  commonSupp = FALSE,
  multiTask = TRUE
)

Arguments

y

A numeric vector or matrix of outcomes

p

An integer of covariate dimension

study

An integer vector of task IDs

lambda_1

A boolean

lambda_2

A boolean

lambda_z

A boolean

commonSupp

A boolean

multiTask

A boolean

Value

A dataframe


[Package sMTL version 0.1.0 Index]