# Load Illumina microarray data previously transformed into two sets of intensities
# corresponding to negative and regular probes.
## Not run:
#
# data(RegNegIntensities_Example)
#
# X = Intensities$Regular
# N = Intensities$Negative
#
# ## Compute the maximum likelihood estimator:
# parmle = normgam.fit(X, N)$par
#
# par(mfrow=c(2,1)) # split windows for post comparison
#
# ## plot the histogram and the estimated density:
# F = dnormgam(parmle, plot=FALSE)
#
#
# H = histogram(X, type='irregular', verbose=FALSE, plot=FALSE)
# plot(H, xlim=c(0,500))
# lines(F$xout, F$dout, col='red')
#
# # Perform the normal-gamma background correction:
# Shat = normgam.signal(X,parmle)
# H = histogram(Shat, type='irregular', verbose=FALSE, plot=FALSE)
# plot(H, xlim=c(0,30))
#
# ## End(Not run)
Run the code above in your browser using DataLab