diagdata: Generated Data Set for Robust Diagnostics

Description Usage Format References Examples

Description

This is the generated data set used for the discussion of robust diagnotics in Section 7.3.

Usage

1

Format

Thirty observations on four variables.

x1

first predictor

x2

second predictor

ygood

good responses

ybad

bad responses

References

Kloke, J. and McKean, J.W. (2014), Nonparametric statistical methods using R, Boca Raton, FL: Chapman-Hall.

Examples

1
2
3
4
5
6
7
8
9
data(diagdata)
hbrfit(ygood~x1+x2,data=diagdata)
hbrfit(ybad~x1+x2,data=diagdata)
dwilhbr = with(diagdata,fitdiag(cbind(x1,x2),ybad,est=c("WIL","HBR")))
bmtdbetas <- dwilhbr$tdbeta
tdbetas <- c(dwilhbr$tdbeta,dwilhbr$bmtd)
cfit <- dwilhbr$cfit
plot(1:30,cfit,xlab="Case",ylab="Change in fits")
title(main="Change Between Fits: Wilcoxon and HBR")

kloke/npsmReg2 documentation built on May 20, 2019, 12:34 p.m.