Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to get 95% CI when using "fit"?

Subject: How to get 95% CI when using "fit"?

From: Aino

Date: 5 Sep, 2009 11:17:04

Message: 1 of 3

Hi all,

I'm using the function fit, [cfun, gof]=fit(...), which returns sse, rsquare, dfe, adjrsquare, rmse as the gof structure. It also seems to determine the upper and lower 95% CI, since they are mentioned after the model parameters. I can refer to for example sse as gof.sse, but how do I refer to the upper or lower 95% CIs?

Thank You,
Aino

Subject: How to get 95% CI when using "fit"?

From: Aino

Date: 5 Sep, 2009 11:32:02

Message: 2 of 3

A little clarification: I'm looking for the 95% confidence bounds for the coefficients..

Subject: How to get 95% CI when using "fit"?

From: Tom Lane

Date: 8 Sep, 2009 21:46:57

Message: 3 of 3

> I'm using the function fit, [cfun, gof]=fit(...), which returns sse,
> rsquare, dfe, adjrsquare, rmse as the gof structure. It also seems to
> determine the upper and lower 95% CI, since they are mentioned after the
> model parameters. I can refer to for example sse as gof.sse, but how do I
> refer to the upper or lower 95% CIs?

Aino, the object returned by the fit function has a confint method. Try

    confint(cfun)
    help cfit/confint

-- Tom

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us