Answered
column 6 at matrix 'm' of multcompare
The sixth column was added some time after the multcompare function was originally created. Could it be that you are looking at ...

8 years ago | 0

Answered
How to use Mauchly's test results in matlab2014a
You can ask for the C matrices from the ranova function, for example: [tbl,a,c] = ranova(R,'within','w1*w2') Then you ca...

8 years ago | 0

| accepted

Answered
Why does the ecdf function return duplicate x values?
This is just for convenience in plotting. Compare these: >> y = rand(10,1); >> [f,x] = ecdf(y); >> subplot(2,1,1); st...

8 years ago | 0

| accepted

Answered
how to fix Iteration limit reached warning
This can be a symptom of perfect separation between the classes, or of something similar to perfect separation. Consider this: ...

8 years ago | 0

| accepted

Answered
Problem using 'interactions' model type using ANOVAN
If two predictors A and B are perfectly correlated, then removing any one of them will not affect the model. This can lead to re...

8 years ago | 0

Answered
Equivalent code to regress(), using fitglm()
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...

8 years ago | 1

| accepted

Answered
Need help with importing database with text field in Regressiontree
You don't say what your data looks like and what problem you are having. I'm guessing the michenicname variable is text and t...

8 years ago | 0

Answered
How the CI of GLM parameters are calculated?
I'm not exactly following what you are trying to do. It looks like you are using the estimated standard deviation of the observe...

8 years ago | 0

Answered
Plotting Y=f(X) after a regression where X contains 2 predictors
Have you considered the plotSlice function? It will plot predicted y vs. x1 for a fixed value of x2, and predicted y vs. x2 for ...

8 years ago | 0

Answered
Specifying which category is the reference level for glmfit
There is not currently a way to specify the reference category for categorical predictors in functions like fitglm. The glmfit f...

8 years ago | 0

| accepted

Answered
Reproducible results using "bootci" matlab function
If you insert reset(s) before the second call to |bootci| , you should find that the two calls yield the same answer.

8 years ago | 1

| accepted

Answered
Find clusters within a set of 3D points
To find points within a threshold distance, try the rangesearch function from the Statistics Toolbox. If you want three-point...

8 years ago | 0

Answered
How does plotslice used to analyze generalized linear models generate simultaneous confidence bounds?
I'm not sure how you are comparing intervals from |coefCI|, which are for the coefficients, and intervals from |plotSlice|, whic...

8 years ago | 1

| accepted

Answered
Does fitrm & ranova support within subject models without between subject factors
Instead of 'Y1-Y4' try 'Y1-Y4~1' You do have to specify a complete formula, but you can include just the const...

8 years ago | 8

| accepted

Answered
Multiple linear regression to fit data to a third degree polynomial equation with interaction terms
You have only three distinct values in the first column of your X matrix, so you won't be able to estimate constant, linear, qua...

8 years ago | 0

| accepted

Answered
Reuse dimensionality reduction after designing model
Greg seems to have some good ideas. However, going back to your original question, this is how it looks to me. If you apply PCA ...

8 years ago | 1

Answered
How to manually set K-means centroids when classifying an image
If your goal is to specify the centroids in advance, and not just have kmeans start with them and adjust them as things go along...

8 years ago | 2

Answered
How to create multidimensional arrays of distribution objects?
This looks like something that we should fix in a future release. Meanwhile, perhaps you would find this work-around useful: ...

9 years ago | 0

| accepted

Answered
piecewise curve fit of a biexponential function
You have a number of places where you are multiplying two vectors. Most likely you want element-wise multiplication (".*") rathe...

9 years ago | 0

Answered
What's the difference between simultaneous and nonsimultaneous confidence bounds for function´╝č
Take a look at <http://www.mathworks.com/help/curvefit/confidence-and-prediction-bounds.html> especially the table "Types ...

9 years ago | 0

Answered
Error importing file using dataset
Would you explain some more? Your quoted line starts "41.2249.214" but you say you want "4" as string, "1.22" as integer, and th...

9 years ago | 0

Answered
Minimum distance classifier code
If you have the Statistics Toolbox, try "help knnclassify" and consider the case with k=1.

9 years ago | 0

Answered
Plane of best fit (without using the sftool)
If you set up a matrix X with three columns containing your x values, your y values, and a column of twenty ones, and set up a Y...

9 years ago | 0

Answered
How to regress a three-variables function from two two-variables functions?
Is the idea that F1 and F2 both try to predict F using just two of the three possible variables? I'm not sure how you would be e...

9 years ago | 0

Answered
In an assignment A(I) = B, the number of elements in B and I must be the same.
If the variable y is not a vector (if it is a matrix with more than 1 row and column), then sum(y.^2) is not a scalar. It looks ...

9 years ago | 1

Answered
Error message from matlab that I do not understand
I see j=1 in your code but I don't see j incremented after that. I suspect you intended to change j somewhere. Here's a hint....

9 years ago | 0

Answered
How do I calculate the t-statistic of a regression when I already have the coefficients?
If you use regstats to estimate the coefficient standard errors, here's what you get using the Hald data: load hald s = ...

9 years ago | 0

| accepted

Answered
Is it possible to use t-copula in Matlab for around 450,000 variables?
I see no limitation imposed by the copularnd function when I look at the code. However, the correlation matrix is going to be 45...

9 years ago | 1

Answered
How do I calculate the t-statistic of a regression when I already have the coefficients?
The t statistic is the ratio of the estimate to its standard error. If you can determine the standard error, you can take this r...

9 years ago | 0

Answered
I have a wblfit error
Nor do I understand it. But if I look inside wblfit I see it displays an error message if either of these is true: if ~isve...

9 years ago | 0

| accepted

Load more