ncvTest(model, ...)
## S3 method for class 'lm':
ncvTest(model, var.formula, ...)
## S3 method for class 'glm':
ncvTest(model, ...) # to report an error
lm
.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