constraints: Define constraints for optimization of warping functions

Description Usage Arguments Value Author(s)

View source: R/constraints.R

Description

Constraints ensure monotonicity of spline coefficients for warping functions for use with constrOptim() function.

Usage

1
constraints(Kh, t_min = 0, t_max = 1, warping = "nonparametric")

Arguments

Kh

Number of B-spline basis functions used to estimate warping functions h.

t_min

Minimum value to be evaluated on the time domain.

t_max

Maximum value to be evaluated on the time domain.

warping

If nonparametric (default), inverse warping functions are estimated nonparametrically. If piecewise_linear2 they follow a piecewise linear function with 2 knots.

Value

An list containing:

ui

A constraint matrix.

ci

A constraint vector.

Author(s)

Julia Wrobel julia.wrobel@cuanschutz.edu, Erin McDonnell eim2117@cumc.columbia.edu


julia-wrobel/registr documentation built on Jan. 16, 2022, 2:51 a.m.