data(pdb)
colnames(pdb) <- NULL
p <- 15
df <- pdb[, c(79, 73, 77, 103, 112, 115, 124, 130, 132, 145, 149, 151, 153, 155, 167, 169)]
dff <- as.matrix(df)
planingdb <- dff[complete.cases(dff), ]
y <- planingdb[, 1]
x <- planingdb[, c(2:(p + 1))]
x <- x + 0.5
xt <- cbind(
x[, 1]^(.33), x[, 2]^(.33), x[, 3]^(.57), x[, 4]^(.33), x[, 5]^(.4),
x[, 6]^(.5), x[, 7]^(.33), x[, 8]^(.16), x[, 9]^(.27), x[, 10]^(.5),
x[, 11]^(.5), x[, 12]^(.33), x[, 13]^(.06), x[, 14]^(.15), x[, 15]^(.1)
)
m <- 1
W <- sapply(1, rnorm)
d.test(y, x, m)
Run the code above in your browser using DataLab