fitSUMmodel | R Documentation |
A function to fit sumPH of the observed signal intensities
fitSUMmodel(
y,
x = NULL,
niter = 10,
delta = 1,
restrictDeg = FALSE,
model = "GA"
)
y |
Vector with sum peak heights (per loci) |
x |
Vector with fragment lengths (base pair) (only provided for degradation) |
niter |
Number of random samples |
delta |
Standard deviation of normal distribution when drawing random startpoints. Default is 1. |
restrictDeg |
Whether to restrict degradation param to be less than 1 |
model |
Selected model for the signals (read/peak heights): "GA"=gamma,"NB"=negative binomial |
This function is used for fitting a regression model (Gamma or Negative binomial)
Estimated parameters (mean,coefVar,slopePara)
## Not run:
th = c(1000,0.3,0.6)
n = 100 #number of samples
x = seq(10,300,l=n)
x = (x-125)/100
y = rgamma(n,shape=2/th[2]^2*th[3]^x,scale=th[1]*th[2]^2)
plot(x,y)
fitSUMmodel(y,x,model="GA")
fitSUMmodel(y,x,model="NB")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.