Learn R Programming

smoothSurv (version 0.4)

give.c: Work Function for 'smoothSurvReg'

Description

Give a vector of all 'c' G-spline coefficients satisfying the three constrains (see below) if only (g-3) c's are given.

Usage

give.c(knots, sdspline, last.three, c.rest)

Arguments

knots
A vector of G-spline knots $\mu$.
sdspline
Standard deviation $\sigma_0$ of the basis G-spline.
last.three
Indeces of the three 'c' G-spline coefficients which are not included in c.rest. This must be a vector of length 3 with three different numbers from 1:length(knots).
c.rest
A vector of (knots) - 3 'c' spline coefficients corresponding to knots knots[-last.three]. They must all lie between zero and one and their sum must be lower or equal to one.