constraints {registr}R Documentation

Define constraints for optimization of warping functions

Description

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

Usage

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


[Package registr version 2.1.0 Index]