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

View source: R/gplsim.r

siR Documentation

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,
  ...
)

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

Value

b fitted gam object


zzz1990771/gplsim documentation built on July 12, 2022, 4:34 p.m.