biccalc: BIC Calculator

Description Usage Arguments Value

View source: R/biccalc.R

Description

Calculates the BIC of the model. Internal use only.

Usage

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

Arguments

pop_matrix_row

Vector containing a model

all_dataframe

Dataframe 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.

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

BIC value of the model


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