jlssc
performs the joint location-and-scale score test.
Arguments
- y
vector of outcome values
- x
vector of exposure values
- covar
data.frame
of covariates- type
type of test, where
1
= Breusch-Pagan variance test,2
= Brown-Forsythe variance test,3
= Method of moments version of test 1, and4
= Method of moments version of test 2] (default:1
)- x.sq
include x-squared in the model
- x.reg
regress out the covariates from the exposure terms
Value
jlst
returns a data.frame
of results:
- Q
the test statistic
- DF
the degrees of freedom
- P
the p-value
Author
James Staley jrstaley95@gmail.com