pspline_checker {JOPS}R Documentation

P-spline checking algorithm for the GLM.

Description

pspline_checker checks to see if all the inputs associated for P-spines are properly defined.

Usage

pspline_checker(family, link, bdeg, pord, nseg, lambda, 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";

bdeg

the degree of B-splines.

pord

the order of the penalty.

nseg

the number of evenly-spaced B-spline segmements.

lambda

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.


[Package JOPS version 0.1.19 Index]