# source("bsimptests.s") # Mar 30, 2001 # Computes test statistics for testing # H0: b1 = 0 # in the simple regression model, which has been fit using # bisquare. # ######### 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)). bsimptests <- function(bhat, resful, resred, sig, tunec=4.685){ n <- length(resful) cvalue <- tunec*sig cvaluesq <- cvalue^2 psisq <- ifelse(abs(resful)