NLL: Non Log-Linear effect

Description Usage Arguments Details See Also

View source: R/NLL.NPH.func.R

Description

Generate the spline basis matrix for non log-linear effect.

Usage

1
2
3
4
5
6
7
8
9
NLL(x, 
    Spline = c("b-spline", "tp-spline", "tpi-spline"), 
    Knots = NULL, 
    Degree = 3, 
    Intercept = FALSE,
    Boundary.knots = range(x), 
    Keep.duplicates = TRUE, 
    outer.ok = TRUE, 
    ...)

Arguments

x

the predictor variable.

Spline

a character string specifying the type of spline basis. "b-spline" for B-spline basis, "tp-spline" for truncated power basis and "tpi-spline" for monotone (increasing) truncated power basis.

Knots

the internal breakpoints that define the spline used to estimate the NLL effect. By default there are none.

Degree

degree of splines which are considered.

Intercept

a logical value indicating whether intercept/first basis of spline should be considered.

Boundary.knots

range of variable which is analysed.

Keep.duplicates

Should duplicate interior knots be kept or removed. Defaults is FALSE, which removes duplicate knots with a warning if duplicate interior knots are found.

outer.ok

logical indicating how are managed x values outside the knots. If FALSE, return NA, if TRUE, return 0 for the corresponding x values.

...

not used

Details

NLL is based on package orthogonalsplinebasis

See Also

NPH and NPHNLL.



flexrsurv documentation built on May 19, 2017, 10:49 a.m.
Search within the flexrsurv package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.