bsspline {ciuupi}R Documentation

Evaluate the functions bb and ss at x

Description

Evaluate the functions bb and ss, as specified by bsvec, alpha, d, n.ints and natural, at x.

Usage

bsspline(x, bsvec, alpha, d, n.ints, natural)

Arguments

x

A value or vector of values at which the functions bb and ss are to be evaluated

bsvec

The (2q1)(2q-1)-vector

(b(h),...,b((q1)h),s(0),s(h)...,s((q1)h)),\big(b(h),...,b((q-1)h), s(0),s(h)...,s((q-1)h) \big),

where qq=ceiling(dd/0.75) and h=d/qh=d/q. This vector specifies the CIUUPI, for all possible values of the random error variance and the observed response vector

alpha

The desired minimum coverage probability is 1α1 - \alpha

d

The functions bb and ss are specified by cubic splines on the interval [d,d][-d, d]

n.ints

The number of equal-length intervals in [0,d][0, d], where the endpoints of these intervals specify the knots, belonging to [0,d][0, d], of the cubic spline interpolations that specify the functions bb and ss. In the description of bsvec, n.ints is also called qq.

natural

Equal to 1 (default) if the bb and ss functions are obtained by natural cubic spline interpolation or 0 if obtained by clamped cubic spline interpolation

Value

A data frame containing x and the corresponding values of the functions bb and ss.

Examples

x <- seq(0, 8, by = 1)
alpha <- bs.list.example$alpha
natural <- bs.list.example$natural
d <- bs.list.example$d
n.ints <- bs.list.example$n.ints
bsvec <- bs.list.example$bsvec
bs <- bsspline(x, bsvec, alpha, d, n.ints, natural)


[Package ciuupi version 1.2.3 Index]