sample.n.fit(main="Default: scales match")
sample.n.fit(scales.generate=5,main="generate scale small")
# Now use a quadratic function instead of the default linear:
f <- function(x){out <- c(1,x,x^2)
names(out) <- c("const","linear","quadratic")
out}
sample.n.fit(main="quadratic prior" , func=f)
Run the code above in your browser using DataLab