Skip to content

Adjusting for heteroscedasticity

2 messages · Bernd Weiss, Frank E Harrell Jr

#
Hi,

am I right that there is no option in R to adjust for heteroscedasticity  
(e.g. in logistic regressions).

TIA,

Bernd
#
On Mon, 21 Oct 2002 17:39:01 +0200
Bernd Weiss <weiss at wiso-r610.wiso.uni-koeln.de> wrote:

            
library(Design)  # see hesweb1.med.virginia.edu/biostat/rms
f <- lrm(..., x=T, y=T)
g <- robcov(f)  # Huber-White covariance matrix
h <- bootcov(f, B=200)  # bootstrap covariance matrix

Both robcov and bootcov will do intra-cluster correlation adjustments:
robcov(f, subject.id) or bootcov(f, subject.id)