R/raceEffectBootAdaptor.R

# bootstrap adaptor for test data to be used with tests of a race effect
# using the boot package.
raceEffectBootAdaptor<-function(df,index,testFnc=relBackgroundLL,useResp=TRUE,...) {
  if (useResp) respVal<-df$absResp
  else respVal<-df$absBkg
  testFnc(respVal[index],df$race,...)
}

Try the EffectsRelBaseline package in your browser

Any scripts or data that you put into this service are public.

EffectsRelBaseline documentation built on May 2, 2019, 9:44 a.m.