ncvTest(model, ...)
## S3 method for class 'lm':
ncvTest(model, var.formula, data=NULL, subset, na.action, ...)
## S3 method for class 'glm':
ncvTest(model, ...) # to report an error
lm
.ncvTest
is called. The data
argument may therefore need to be specified even when
tNA
s.
The default is set by the na.action
setting of options
.chisqTest
object, which is usually just printed.ncvTest.glm
is a dummy function to generate an error when a glm
model is used.hccm
, spreadLevelPlot
ncvTest(lm(interlocks ~ assets + sector + nation, data=Ornstein))
ncvTest(lm(interlocks ~ assets + sector + nation, data=Ornstein),
~ assets + sector + nation, data=Ornstein)
Run the code above in your browser using DataLab