jlssc | R Documentation |
jlssc
performs the joint location-and-scale score test.
jlssc(y, x, covar = NULL, type = 1, x.sq = FALSE, x.reg = TRUE)
y |
vector of outcome values |
x |
vector of exposure values |
covar |
|
type |
type of test, where
|
x.sq |
include x-squared in the model |
x.reg |
regress out the covariates from the exposure terms |
jlst
returns a data.frame
of results:
Q |
the test statistic |
DF |
the degrees of freedom |
P |
the p-value |
James Staley jrstaley95@gmail.com
x <- rbinom(1000, 1, 0.5)
y <- 0.5 + 0.025 * x + rnorm(1000, 0, sqrt(0.005 * x)) + rnorm(1000, 0, 0.1)
jlssc(y, x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.