View source: R/TestSingleRegion.R
TestSingleRegion | R Documentation |
Test associations between phenotype and RNA editing levels in a single site or summarized RNA editing levels in a single region.
TestSingleRegion( rnaEdit_num, modelPrep_ls, respType = c("binary", "continuous", "survival") )
rnaEdit_num |
A named numeric vector of (summarized) RNA editing level values with sample IDs as names. |
modelPrep_ls |
A list includes |
respType |
Type of outcome. Defaults to |
minSize
is used by function TestSingleRegion
to
decide on whether to use regular logistic regression or Firth corrected
logistic regression ("https://www.jstor.org/stable/2336755").
a dataframe with test statistics (estimate, stdErr, pValue
or
coef, exp_coef, se_coef, pValue
).
data(rnaedit_df) exm_pheno <- readRDS( system.file( "extdata", "pheno_df.RDS", package = 'rnaEditr', mustWork = TRUE ) ) exm_model <- list( modelFormula_char = "age_at_diagnosis ~ rnaEditSummary", pheno_df = exm_pheno, minSize = NULL ) TestSingleRegion( rnaEdit_num = unlist(rnaedit_df[2,]), modelPrep_ls = exm_model, respType = "continuous" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.