pspline2d_checker: P-spline 2D tensor product checking algorithm for the GLM.

pspline2d_checkerR Documentation

P-spline 2D tensor product checking algorithm for the GLM.

Description

pspline_2dchecker checks to see if all the 2D tensor inputs associated for P-spines are properly defined.

Usage

pspline2d_checker(
  family,
  link,
  bdeg1,
  bdeg2,
  pord1,
  pord2,
  nseg1,
  nseg2,
  lambda1,
  lambda2,
  ridge_adj,
  wts
)

Arguments

family

the response distribution, e.g. "gaussian", "binomial", "poisson", "Gamma" distribution. Quotes are needed.

link

the link function, one of "identity", "log", "sqrt", "logit", "probit", "cloglog", "loglog", "reciprocal"; quotes are needed.

bdeg1

the degree of B-splines.

bdeg2

the degree of B-splines.

pord1

the order of the penalty.

pord2

the order of the penalty.

nseg1

the number of evenly spaced B-spline segmements.

nseg2

the number of evenly spaced B-spline segmements.

lambda1

the positive tuning parameter for the difference penalty.

lambda2

the positive tuning parameter for the difference penalty.

ridge_adj

the positive tuning parameter for the ridge penalty.

wts

the weight vector, separate from GLM weights.

Value

list

same as inputs, with warnings if required.


JOPS documentation built on Sept. 8, 2023, 5:42 p.m.

Related to pspline2d_checker in JOPS...