Learn R Programming

gplsim (version 1.0.0)

si: An internal function to optimization and fitting. Don't use it solely.

Description

An internal function to optimization and fitting. Don't use it solely.

Usage

si(
  alpha,
  y,
  x,
  z,
  opt = TRUE,
  smooth_selection,
  fam,
  bs = "ps",
  fx = FALSE,
  scale = scale,
  ...
)

Value

b fitted gam object

Arguments

alpha

single-index coefficients

y

Response variable, should be a vector.

x

Single index covariates.

z

Partially linear covariates.

opt

see ?gplsim

smooth_selection

see ?gplsim

fam

see ?gplsim

bs

see ?gplsim

fx

see ?gplsim

scale

see ?gplsim

...

includes optional arguments user can pass to mgcv::gam or glm, such as k, which is the dimension of the basis of the smooth term and m, which is the order of the penalty for the smooth term