Learn R Programming

deepregression (version 2.2.0)

prepare_newdata: Function to prepare new data based on parsed formulas

Description

Function to prepare new data based on parsed formulas

Usage

prepare_newdata(
  pfc,
  newdata,
  na_handler = na_omit_list,
  gamdata = NULL,
  engine = "tf"
)

Value

list of matrices or arrays

Arguments

pfc

list of processor transformed formulas

newdata

list in the same format as the original data

na_handler

function to deal with NAs

gamdata

processor for gam part

engine

character; the engine which is used to setup the NN (tf or torch)