Learn R Programming

MSIMST (version 1.1)

phiX_c: The Function to Calculate the phiX Matrix for Estimating Single-Index Function

Description

The function phiX_c is used to generate the phiX matrix associated with the Gaussian process prior.

Usage

phiX_c(Xbeta, u, L)

Value

A n by L + 1 matrix.

Arguments

Xbeta

The single index values. A vector of length n.

u

The vector spanning from -1 to 1 with length L + 1.

L

An integer defining the number of nodes.

Examples

Run this code
L <- 50
u <- seq(-1,1,length.out = L + 1)
phiX <- phiX_c(0.5,u,L)
print(phiX)

Run the code above in your browser using DataLab