Community Profile

Contact

Statistics and Machine Learning Toolbox developer Professional Interests: statistics, especially reliability/survival analysis, design of experiments, anova, simultaneous inference, visualization

Top 1% contributor

If you have the most recent release of the Statistics Toolbox: >> x = poissrnd(4,20,1); >> pd = fitdist(x,'poisson'); ...

accepted

5

Answered 4 years ago

Aino, I also missed your message until now. I still don't get it. An example might help unless you have already figured it out....

11874 views

Responded 5 years ago

Instead of 'Y1-Y4' try 'Y1-Y4~1' You do have to specify a complete formula, but you can include just the const...

4

Answered 2 years ago

The prediction shown at the left of the plot is the value given by the model when the predictors are set to the numbers shown be...

3

Answered 2 months ago

Take a look at this for illustration of the mechanics of how the function works: x = exprnd(2,20,1); subplot(1,2,1); pro...

When you create within_fact, you are defining a matrix with categories from 1 up to max(nr_cond, nr_sessions). So both columns o...

2

Try "help mvncdf" again and read down to the syntax Y = mvncdf(XL,XU,MU,SIGMA) This sounds like what you want.

If you are happy with a toy illustration rather than a realistic example, here's one. Set up some fake data following a linear m...

h = histfit(randn(100,1)); set(h(1),'facecolor','g'); set(h(2),'color','m') Changing other properties is similar. Just r...

Suppose you have data X and classes C. Can you look at var(X(C==1,:) If you see that columns 5, 6, 12, etc. have zero va...

Here's how to do that with three vectors of different lengths: x1 = rand(10,1); x2 = 2*rand(15,1); x3 = randn(30,1); x =...

There is a newer function that can do that: load hald stepwiselm(ingredients,heat,'Criterion','adjrsquared')

1

Answered 6 months ago

The first component explains most of the variation in the columns of DATA, but Y is not involved in that. Of course I don't unde...

Answered 10 months ago

Hi cyclist, the default starting values are selected from the data at random, and you have discovered that this sometimes does n...

I believe these are not the same. For the |fitglm| model we are saying that Y has a normal distribution whose log(mean) has a li...

If you type "type princomp" you will see that it is just a call to pca with certain default inputs defined. The pca function was...

Answered 3 years ago

I should have realized what you meant at first. I don't know much about image registration, but perhaps this will have some anal...

You ask a number of questions. Here are two answers. You ask how to compute the negative log likelihood. If you have the Statist...

I would try 'KeepIn',[true false false true] in the function call to keep in the first and fourth of four features.

This might be the explanation, and it includes a suggestion of how to avoid the problem: http://www.mathworks.com/support/b...

I agree this looks like a bug where if you specify a variable as random but it doesn't actually appear in any terms, the code ge...

The kmeans function has an option 'EmptyAction' that you could try. With this option you can request that, if a cluster becomes ...

I may not follow your request. The variable T indicates which row of X belongs to each cluster. If you want to show that on the ...

You are right that the result from coefTest is an F-test. There is no built-in way to carry out a one-sided t test. Here are ...

The fitdist function uses maximum likelihood. The exceptions are the normal and lognormal distributions. For the normal distribu...

The binofit function computes confidence intervals using the Clopper-Pearson method. I believe what you're seeing is because ...

If you have the Statistics Toolbox, the following commands will reproduce the sftool results: [X,Y,Z] = peaks; x2fx([X(:...

The GeneralizedLinearModel interface is intended to be a step forward over glmfit, though the latter is still there. The new ver...

Your desired result has v=6 for x=2, but A and B provide different values for v in that case. One thing you could do is joi...

CONFINT returns confidence intervals for the parameters. So if you fit y=a+b*x, you get confidence intervals for a and b. PRE...

Load more

Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a location from the following list:

See all countries