remove_mains_func: Main Effects Reduction

Description Usage Arguments Value

View source: R/remove_mains_func.R

Description

Additional variable reduction after the genetic algorithm has finished. Internal use only.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
remove_mains_func(
  best_ind,
  all_dataframe,
  Kvar,
  Kint,
  k,
  bs,
  family,
  method,
  optimizer,
  always_par
)

Arguments

best_ind

Vector contain the model.

all_dataframe

Data frame with all variables.

Kvar

Maximum number of variables allowed in the final model

Kint

Maximum number of interactions allowed in the final model

k

Basis dimension for nonparametric terms estimated using cubic splines.

bs

Spline basis.

family

Specifies the family for the gam (see ?family and ?family.mgcv). Default is gaussian().

method

Specifies the metric for smoothing parameter selection (see ?gam). Default is "REML".

optimizer

Specifies the numerical optimization algorithm for the gam (see ?gam). Default is c("outer","newton").

always_par

Specifies which variables are always estimated parametrically

Value

Reduced model.


markcus1/gagam documentation built on April 16, 2020, 11:50 a.m.