Thread Subject:
fitdist question

Subject: fitdist question

From: Shaun Hurley

Date: 21 Jan, 2011 13:51:05

Message: 1 of 5

Hello All,

I have a question about the fitdist function. I have data along with the number of occurrences, but am confused as to how to use that with the function. My code looks something like this:

data = [50x2 matrix]
X = data(:,1);
freq = data(:,2);
L = length(X);
cens = linspace(0,0,L)';
probplot(X,cens,freq)
fit = fitdist(X,cens,freq,'weibull')

I can't seem to get it to work, any suggestions? Thanks in advance.

Subject: fitdist question

From: Peter Perkins

Date: 21 Jan, 2011 16:10:35

Message: 2 of 5

On 1/21/2011 8:51 AM, Shaun Hurley wrote:
> fit = fitdist(X,cens,freq,'weibull')
>
> I can't seem to get it to work, any suggestions? Thanks in advance.

Shaun, is this the FITDIST function in the Statistics Toolbox? If it
is, that's not the correct way to call it. I think you want something like

    fit = fitdist(X,'weibull','frequency',freq)

Hope this helps.

Subject: fitdist question

From: Shaun Hurley

Date: 21 Jan, 2011 20:47:04

Message: 3 of 5

Worked perfect, thank you so much!

Subject: fitdist question

From: pablozaninelli@gmail.com

Date: 28 Sep, 2012 17:59:33

Message: 4 of 5

Hi All,
Anybody know how I can get the error in the fit process using this MATLAB function?

Thank you in advance
Pablo

El viernes, 21 de enero de 2011 10:51:05 UTC-3, Shaun Hurley escribi:
> Hello All,
>
> I have a question about the fitdist function. I have data along with the number of occurrences, but am confused as to how to use that with the function. My code looks something like this:
>
> data = [50x2 matrix]
> X = data(:,1);
> freq = data(:,2);
> L = length(X);
> cens = linspace(0,0,L)';
> probplot(X,cens,freq)
> fit = fitdist(X,cens,freq,'weibull')
>
> I can't seem to get it to work, any suggestions? Thanks in advance.

Subject: fitdist question

From: Tom Lane

Date: 1 Oct, 2012 16:54:56

Message: 5 of 5

>> fit = fitdist(X,cens,freq,'weibull')
>>
>> I can't seem to get it to work, any suggestions? Thanks in advance.

Type "help fitdist". This function call is of the form fitdist(x,'weibull')
with other optional inputs provided by optional parameter names and values.

-- Tom

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
fitdist Shaun Hurley 21 Jan, 2011 08:54:24
probplot Shaun Hurley 21 Jan, 2011 08:54:24
rssFeed for this Thread

Contact us