Last chance! 50% off unlimited learning
Sale ends in
ncv.test(model, ...)
## S3 method for class 'lm':
ncv.test(model, var.formula, data=NULL, subset, na.action, ...)
## S3 method for class 'glm':
ncv.test(model, ...)
lm
.ncv.test
is called.NA
s.
The default is set by the na.action
setting of options
.chisq.test
object, which is usually just printed.ncv.test.glm
is a dummy function to generate an error when a glm
model is used.hccm
, spread.level.plot
ncv.test(lm(interlocks~assets+sector+nation, data=Ornstein))
## Non-constant Variance Score Test
## Variance formula: ~ fitted.values
## Chisquare = 46.98537 Df = 1 p = 7.151835e-12
ncv.test(lm(interlocks~assets+sector+nation, data=Ornstein),
~ assets+sector+nation, data=Ornstein)
## Non-constant Variance Score Test
## Variance formula: ~ assets + sector + nation
## Chisquare = 74.73535 Df = 13 p = 1.066320e-10
Run the code above in your browser using DataLab