ssr.control: Set Control Parameters for 'ssr'

View source: R/assist.R

ssr.controlR Documentation

Set Control Parameters for ‘ssr’

Description

The values supplied in the function call replace the defaults and a list with all possible arguments is returned. The returned list is used as the ‘control’ argument to the ‘ssr’ function.

Usage

ssr.control(job=-1, tol=0.0, init=0.0, theta, prec=1e-06, 
  maxit=30, tol.g=0.0, prec.g=1e-06, maxit.g=30)

Arguments

job

an integer representing the optimization method used to find the smoothing parameter. The options are job=-1: golden-section search on (limnla(1), limnla(2)); job=0: golden-section search with interval specified automatically; job >0: regular grid search on [limnla(1), limnla(2)] with the number of grids = job + 1. Default is -1. This is only applicable to smoothing spline model with a single smoothing parameter.

tol

tolerance for truncation used in ‘dsidr’ or ‘dmudr’. Default is 0.0 which sets to square of machine precision.

init

init=0 means no initial values are provided for smoothing parameters theta; init=1 means initial values are provided for the theta. Default is 0. This option is only applicable to smoothing spline models with multiple smoothing parameters.

theta

If init=1, theta includes intial values for smoothing parameters. Default is NULL. This is only applicable to smoothing spline models with multiple smoothing parameters.

prec

precision requested for the minimum score value in ‘dmudr’, where precision is the weaker of the absolute and relative precisions. Default is 1e-06. This is only applicable to smoothing spline models with multiple smoothing parameters.

maxit

maximum number of iterations allowed in ‘dmudr’. Default is 30. This is only applicable to smoothing spline model with multiple smoothing parameters.

tol.g

the tolerance for elements of w's in GRKPK. Default is 0.0 which means using the machine precision. This is only applicable to generalized spline smoothing.

prec.g

precision for stopping the iteration in GRKPK. Default is 1e-06. This is only applicale to generalized spline smoothing.

maxit.g

maximum number of iterations allowed for the iteration in GRKPACK. Default is 30. This is only applicale to generalized spline smoothing.

Value

a list with components for each of the possible arguments.

See Also

ssr

Examples

## Not run: 
# use regular grid seach method with 100 grid points
ssr.control(job=99)

## End(Not run)

assist documentation built on Aug. 22, 2023, 9:12 a.m.

Related to ssr.control in assist...