Description Usage Arguments Details Value Author(s)
Main function of the SPAC package
1 2 3 |
y1 |
vector designates the primary phenotype (one row-entry per individual), of length n. |
y2 |
vector designates the secondary phenotype (one row-entry per individual), of length n. |
G |
vector deignates the SNP of interest for
which the association test specified by the |
covariates |
matrix of covariates NOT-including intercept (dimension: n \times p, with p the number of covariates). |
prev |
scalar between 0 and 1, specifies the primary phenotype prevalance.
It is needed for the |
cutoffs |
vector or scalar, depending on the sampling mechanism design
|
link |
character, specifies the link function to be used for modelling the marginal distribution of the binary primary phenotype for the CC and MT designs. The available link functions are link=c("probit","logit","cloglog"). The defaut is link = "probit", which th liabiltiy latent model. |
copfit |
character, selects the copula to use for modelling priamry-secondary phenptypes dependence. Can be one of the following:
|
method |
character, selects the method to use for correcting the sampling mechanism bias. Can be one of the following:
|
Design |
character, specifies the sampling design of the data. Can be one of the following:
|
The SPAC function is the main function of the SPAC used package.
A list containing results of the association test
specified by the method
parameter using the copula model for modelling primary-secondary dependency
by the copfit
parameter for the sampling mechanism Design
. The
output list contains the following results:
intercept.SNP.SecP
: the intercept estimate from the marginal model of the secondary phenotype, and its standard error
SNP.SecP
: the effect size estimate of the SNP on the secondary phenotype, and its standard error
P.value.SecP
: the p-value of the SNP/secondary phenotype association test
intercept.SNP.PrP
: the intercept estimate from the marginal mode of the primamry phenotype, and its standard error
SNP.PrP
: the effect size estimate of the SNP on the primamry phenotype, and its standard error
P.value.PrP
: the p-value of the SNP/primary phenotype association test
alpha
: the estimated primary-secondary dependence parameter, as a parameter of the used copula
tau
: Kendall's tau, which is a function of the estimated primary-secondary dependence parameter alpha
df2
: the estimated degree of freedom of the secondary-phenotype marginal distribution, Student-t
AIC
: the AIC criterion calculated based on the prospective or rterospective copula-model
Karim Oualkacha
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.