How do I get the confidence intervals from NonlinearModelFit so that I can use them in subsequent calculations?
In this example I generate some data and then use NonlinearModelFit to fit the data. I get a nice parameter table from the fit. (The PValue is crazy but that is not the problem here). I am after the values in the last column which can be seen if you slide to the right.
SeedRandom[123];
dd = Table[{t, (3 t)/(1 + 2 t^2) + RandomReal[{0, 0.05}]}, {t, 0.1,
10, 0.1}];
ClearAll[a, b];
nlm = NonlinearModelFit[dd, (a t)/(1 + b t^2), {{a, 2.8}, {b, 2.1}},
t];
nlm["ParameterEstimates"]
I want the confidence interval values as a list that I can use in further calculations. As far as I can see it is not one of the properties you can get from the list of properties nlm["Properties"]




Normal@nlm["ParameterEstimates"][[;; ,"ConfidenceInterval"]]$\endgroup$Normalto make it usable. Howe did you find that or isNormalsomething you find you need all the time? Many thanks. $\endgroup$nlm["ParameterEstimates"]is aDatasetstructure. Somewhere in the documentation it indicated thatNormalcan be used to convert it into the underlying data, which is the list of parameters. $\endgroup$Dataset, "Normal can be used to convert any Dataset object to its underlying data, which is typically a combination of lists and associations." $\endgroup$