added option not to plot when generating marginal
calculates upper limit by fitting logistic function