Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How can I find t-statistics for parameters a, b of a function f = 1 / (a.log(x)+b) using matlab?

1 Ansicht (letzte 30 Tage)
Nick
Nick am 7 Feb. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have a function of this type: f = 1 / (a.log(x)+b), and I need to find t-statistics for parameters a and b... How can I do this? Is it helpful to do this using curve fitting tool? Can you give me an example?

Antworten (1)

Tom Lane
Tom Lane am 7 Feb. 2013
Do you have a recent version of the Statistics Toolbox available?
>> load census
>> d = dataset(cdate,pop);
>> nlm = NonLinearModel.fit(d,'pop ~ 1/(a*log(cdate)+b)',[1 1])
The output includes t statistics

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by