Description Usage Arguments Details Value Examples
Shifts a fitted size paramter according to the a power-law relationship.
1  | 	bg__shift_size(mu_all, size_all, mu_group, coeffs) 
 | 
mu_all | 
 vector of original mus  | 
size_all | 
 vector of original sizes  | 
mu_group | 
 vector of new mus  | 
coeffs | 
 coefficients of the power-law fit  | 
Wrapper of short function which converts values to their logs then shifts them using the parameters of a linear fit before un-logging them.
vector of new size parameters
1 2 3 4 5  | #require("M3DExampleData")
#counts <- NBumiConvertData(Mmus_example_list$data, is.counts=TRUE);
#fit <- NBumiFitModel(counts);
#ceoffs <- NBumiFitDispVsMean(fit, suppress.plot=TRUE)
#new_size <- bg__shift_size(rowMeans(counts), fit$size, rowMeans(counts)*2, coeffs)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.