# source("Hsimptests.s") # Mar 30, 2001 # Computes test statistics for testing # H0: b1 = 0 # in the simple regression model, which has been fit using # Huber's method. # ######### Assumes var(x1)=1 # The test statistics are: # * two Wald test statistics # * fsh (Shrader and Hettsmansberger) # Normally, sig is computed as 1.483*median(abs(resful)). Hsimptests <- function(bhat, resful, resred, sig, kbend=1.345){ n <- length(resful) kvaluesq <- (kbend*sig)^2 psisq <- ifelse(resful^2