llrsim <-
function(n = 100, nruns = 1, type = 1)
{
# Runs llrpot 10 times on simulated LLR.
# Type = 1 for Poisson data, Type = 2 for negative binomial data
# Calls llrdata, oddata, llrplot.
q <- 5
for(i in 1:nruns) {
if(type == 1)
out <- llrdata(n, q)
else out <- oddata(n, q)
x <- out$x
y <- out$y
llrplot(x, y) #identify(MWFIT, MWRES)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.