bsspline {ciuupi}R Documentation

Evaluate the functions b and s at x

Description

Evaluate the functions b and s, 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 b and s are to be evaluated

bsvec

The (2q-1)-vector

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

where q=ceiling(d/0.75) and h=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 - \alpha

d

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

n.ints

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

natural

Equal to 1 (default) if the b and s 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 b and s.

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]