Description Arguments Value Examples
Computes a p-value for the intercept and each enhancer coefficient in the link function by performing likelihood ratio tests between the full model and a reduced model without that coefficient. Can be parallelized if doParallel is installed. NOTE. Make sure your full model is already fit before running this function!!!
x |
enhancerDataObject |
threads |
number of threads to use for refiting, requires parallel |
... |
all aditional parameters to be passed to optimizer function |
A list with two elements:
pVals: A table of the coefficient p-values
reducedModels: Refitted reduced models used to estimate the p-values
1 2 3 4 5 6 7 8 9 | ## Create a test design data.frame
design=expand.grid(E1=c(0,1),E2=c(0,1),E3=c(0,1))
## Create fake expression data
expression=c(0.001,0.2,0.3,0.7,0.4,0.8,0.6,1)*100
## Create activity function
actFun=formula(~E1+E2+E3+E1:E2)
edo = enhancerDataObject(expression,design,actFun)
edo=optimDE(edo,maxit=500)
param.stats=computeParamPvals(edo,maxit=500)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.