buildLKTModel {LKT}R Documentation

buildLKTModel

Description

Forward and backwards stepwise search for a set of features and components

with tracking of nonlinear parameters.

Usage

buildLKTModel(
  data,
  usefolds = NA,
  allcomponents,
  allfeatures,
  currentcomponents = c(),
  specialcomponents = c(),
  specialfeatures = c(),
  forv,
  bacv,
  preset = NA,
  presetint = T,
  currentfeatures = c(),
  verbose = FALSE,
  currentfixedpars = c(),
  maxitv = 10,
  interc = FALSE,
  forward = TRUE,
  backward = TRUE,
  metric = "BIC",
  removefeat = c(),
  removecomp = c()
)

Arguments

data

is a dataset with Anon.Student.Id and CF..ansbin.

usefolds

Numeric Vector | Specifies the folds for model fitting in LKT; the features are still calculated across all folds to compute test fold fit externally

allcomponents

is search space for LKT components

allfeatures

is search space for LKT features

currentcomponents

components to start search from

specialcomponents

add special components (not crossed with features, only paired with special features 1 for 1)

specialfeatures

features for each special component (not crossed during search)

forv

the minimuum amount of improvement needed for the addition of a new term

bacv

the maximuum amount of loss for a term to be removed

preset

One of "static","AFM","PFA","advanced","AFMLLTM","PFALLTM","advancedLLTM"

presetint

should the intercepts be included for preset components

currentfeatures

features to start search from

verbose

passed to LKT

currentfixedpars

used for current features as an option to start

maxitv

passed to LKT

interc

passed to LKT

forward

TRUE or FALSE

backward

TRUE or FALSE

metric

One of "BIC","AUC","AIC", and "RMSE"

removefeat

Character Vector | Excludes specified features from the test list.

removecomp

Character Vector | Excludes specified components from the test list.

Value

list of values "tracetable" and "currentfit"


[Package LKT version 1.6.0 Index]