Learn R Programming

sleuth (version 0.29.0)

sleuth_wt: Wald test for a sleuth model

Description

This function computes the Wald test on one specific 'beta' coefficient on every transcript.

Usage

sleuth_wt(obj, which_beta, which_model = "full")

Arguments

obj

a sleuth object

which_beta

a character string of denoting which grouping to test. For example, if you have a model fit to 'treatment,' with values of neg_ctl, pos_ctl, and drug, you would need to run sleuth_wt once each for pos_ctl and drug

which_model

a character string of length one denoting which model to use

Value

an updated sleuth object

See Also

models to view which models have been fit and which coefficients can be tested, sleuth_results to get back a data.frame of the results

Examples

Run this code
# NOT RUN {
# Assume we have a sleuth object with a model fit to both genotype and drug,
models(so)
# formula:  ~genotype + drug
# coefficients:
#   (Intercept)
#   genotypeKO
#   drugDMSO
so <- sleuth_wt(so, 'genotypeKO')
so <- sleuth_wt(so, 'drugDMSO')
# }

Run the code above in your browser using DataLab