Description Usage Arguments Details Value Examples
View source: R/TestSingleRegion.R
Test associations between phenotype and RNA editing levels in a single site or summarized RNA editing levels in a single region.
1 2 3 4 5 | 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
).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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.