bs_ciuupi {ciuupi} | R Documentation |
Computes the the functions
and
that specify the CIUUPI for all possible
values of
and the observed response vector
Description
Chooses the positive number and the positive integer
, sets
, and then computes the
-vector
that determines, via cubic spline interpolation, the functions
and
which specify
the confidence interval for
that utilizes the uncertain prior information (CIUUPI),
for all possible values of
and the observed response vector.
To an excellent approximation, this confidence interval
has minimum coverage probability
.
Usage
bs_ciuupi(alpha, rho, natural = 1)
Arguments
alpha |
The desired minimum coverage probability
is |
rho |
The known correlation |
natural |
Equal to 1 (default) if the functions |
Details
Suppose that
where
is a random
-vector of
responses,
is a known
by
matrix
with linearly
independent columns,
is an unknown parameter
-vector and
is the random error with components that are iid normally distributed
with zero mean and known variance
.
The parameter of interest is
.
Also let
, where
and
are specified linearly independent
vectors and
is a specified number.
The uncertain prior information is that
.
Let rho
denote the known
correlation between the and
.
We can compute
rho
from given values of ,
and
using the function
acX_to_rho
.
The confidence interval for ,
with minimum coverage probability
1
alpha
, that utilizes the uncertain prior
information that
0 belongs to a class of confidence
intervals indexed
by the functions
and
.
The function
is an odd continuous function and
the function
is an even
continuous function. In addition,
and
is equal to the
1
alpha
quantile of the
standard normal distribution for all
, where
is a given positive number.
Extensive numerical explorations
have been used to find a formula (in terms of
alpha
and rho
) for a 'goldilocks'
value of that is neither too large nor too small.
Then let
=ceiling(
/0.75) and
.
The values of the functions
and
in
the interval
are specified by the
-vector
.
The values of and
for
are
deduced from this vector using the assumptions made about
the functions
and
.
The values of
and
for any
in the interval
are then found using cube spline interpolation using the
values of
and
for
.
For
natural
=1 (default) this is 'natural' cubic
spline interpolation and for natural
=0 this is
'clamped' cubic spline interpolation.
The vector
is found by numerical nonlinear constrained optimization
so that the confidence interval has minimum
coverage probability 1
alpha
and utilizes
the uncertain prior information
through its desirable expected length properties.
This optimization is performed using the
slsqp
function
in the nloptr
package.
Value
A list with the following components.
alpha, rho, natural: the inputs
d: a 'goldilocks' value of that is not too large
and not too small
n.ints: number of equal-length consecutive
intervals whose union is ,
this is the same as
lambda.star: the computed value of
bsvec: the vector
that determines
the functions
and
that specify the CIUUPI for all possible
values of
and observed response vector
comp.time: the computation time in seconds
Examples
alpha <- 0.05
rho <- - 1 / sqrt(2)
bs.list <- bs_ciuupi(alpha, rho)