Answered

Rearrange DoE main effects plot

I can't think of an easy way to make the plots have a different arrangement. I'm guessing you are using rstool, is that right...

Rearrange DoE main effects plot

I can't think of an easy way to make the plots have a different arrangement. I'm guessing you are using rstool, is that right...

4 years ago | 0

Answered

Confusion Matrix of cross validation of an ECOC SVM classifier

The confusion matrix is one measure of classifier accuracy. You should supply the confmat function with the known labels and the...

Confusion Matrix of cross validation of an ECOC SVM classifier

The confusion matrix is one measure of classifier accuracy. You should supply the confmat function with the known labels and the...

4 years ago | 0

Answered

query on command "silhouette(X,clust)"

Normally if you a clustering an N-by-P matrix, CLUST will be a vector of length N that will be 1 for the points in the first clu...

query on command "silhouette(X,clust)"

Normally if you a clustering an N-by-P matrix, CLUST will be a vector of length N that will be 1 for the points in the first clu...

4 years ago | 0

Answered

Error when evaluating clusters of a dataset

It looks like your next-to-last column, which has cluster numbers up to 9, is missing cluster 6 so it only has 8 clusters. I bel...

Error when evaluating clusters of a dataset

It looks like your next-to-last column, which has cluster numbers up to 9, is missing cluster 6 so it only has 8 clusters. I bel...

4 years ago | 1

| accepted

Answered

boxplot vs column of strings

The simplest way to do this would depend on how you have your data stored now. For example, do you already have it as a column o...

boxplot vs column of strings

The simplest way to do this would depend on how you have your data stored now. For example, do you already have it as a column o...

4 years ago | 0

Answered

Modifying the Parameter Estimation Method of wblfit Function

I think you should not modify wblfit, but just do it directly or write a separate function. Here's an example of how to do what ...

Modifying the Parameter Estimation Method of wblfit Function

I think you should not modify wblfit, but just do it directly or write a separate function. Here's an example of how to do what ...

4 years ago | 0

Answered

Calculating statistical PDF and percentiles over matrices

I'm not sure this is what you want, but: a = peaks % 49x49 matrix b = bsxfun(@plus,a,5*ra...

Calculating statistical PDF and percentiles over matrices

I'm not sure this is what you want, but: a = peaks % 49x49 matrix b = bsxfun(@plus,a,5*ra...

4 years ago | 0

Answered

Why kNNsearch and kNNclassify don't give the same result??

As I understand this, knnclassify returns a classification so result is a value from label_matrix. knnsearch just searches fo...

Why kNNsearch and kNNclassify don't give the same result??

As I understand this, knnclassify returns a classification so result is a value from label_matrix. knnsearch just searches fo...

4 years ago | 0

Answered

How to calculate posterior probability?

Try "help gmdistribution/gmdistribution" for a function that can create an object representing this mixture distribution. There ...

How to calculate posterior probability?

Try "help gmdistribution/gmdistribution" for a function that can create an object representing this mixture distribution. There ...

4 years ago | 0

Answered

Why am I getting redundant legend (group) icon colors when utilizing the gscatter command?

The gscatter function as a separate legend entry for each group. Your group, as given by the Legend_Nomenclature variable, is th...

Why am I getting redundant legend (group) icon colors when utilizing the gscatter command?

The gscatter function as a separate legend entry for each group. Your group, as given by the Legend_Nomenclature variable, is th...

4 years ago | 0

| accepted

Answered

Is there a way to specify a constant using the fit() function?

The answer you got is correct, so here's how you might do it: % Get some data x = sort(10*rand(100,1)); y = 0 + 1*cos...

Is there a way to specify a constant using the fit() function?

The answer you got is correct, so here's how you might do it: % Get some data x = sort(10*rand(100,1)); y = 0 + 1*cos...

4 years ago | 0

Answered

How to estimate the constant term in a multiple linear regression?

You write "X=a+bY+BZ" suggesting that X may be a response and Y and Z predictors. But the first input to mvregress is the predic...

How to estimate the constant term in a multiple linear regression?

You write "X=a+bY+BZ" suggesting that X may be a response and Y and Z predictors. But the first input to mvregress is the predic...

4 years ago | 0

Answered

Simulating dependent normally distributed variables using copulas

Consider formatting your question so the code is not wrapped into the text. The syntax |ksdensity(x,xx)| computes a kernel de...

Simulating dependent normally distributed variables using copulas

Consider formatting your question so the code is not wrapped into the text. The syntax |ksdensity(x,xx)| computes a kernel de...

5 years ago | 0

Answered

Quasi random numbers in high dimension

The link gives ambiguous advice. The text suggests using P-1 even though the example uses P. If I try 4860, things look okay.

Quasi random numbers in high dimension

The link gives ambiguous advice. The text suggests using P-1 even though the example uses P. If I try 4860, things look okay.

5 years ago | 0

Answered

Is there a bug in Multidimensional Input to mhsample?

It looks like there's something that could be improved. The error message was no help. I think you want to specify a multivariat...

Is there a bug in Multidimensional Input to mhsample?

It looks like there's something that could be improved. The error message was no help. I think you want to specify a multivariat...

5 years ago | 0

Answered

Comparing Two Empirical CDFs

The kstest2 function can work with two samples, using their two empirical CDFs.

Comparing Two Empirical CDFs

The kstest2 function can work with two samples, using their two empirical CDFs.

5 years ago | 0

Answered

Decision Boundaries for kmeans clusters.

You probably didn't mean to define 1200 distinct labels. You probably didn't mean to pass into classify a first argument wit...

Decision Boundaries for kmeans clusters.

You probably didn't mean to define 1200 distinct labels. You probably didn't mean to pass into classify a first argument wit...

5 years ago | 0

Answered

How to define categorical within factors in fitrm?

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...

How to define categorical within factors in fitrm?

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...

5 years ago | 2

| accepted

Answered

I need to identify the diffetent outputs of confusionmat

The matrix is the count of actual and predicted values for each class. You can use the second output to get the class names. For...

I need to identify the diffetent outputs of confusionmat

The matrix is the count of actual and predicted values for each class. You can use the second output to get the class names. For...

5 years ago | 1

Answered

where is the pvalue of the model stored in fitlm or fitglm?

Try this: load hald lm = fitlm(ingredients,heat) lm.Coefficients.pValue(1)

where is the pvalue of the model stored in fitlm or fitglm?

Try this: load hald lm = fitlm(ingredients,heat) lm.Coefficients.pValue(1)

5 years ago | 4

Answered

Gaussian mixture model sometimes seems to fit very badly

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

Gaussian mixture model sometimes seems to fit very badly

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

5 years ago | 1

| accepted

Answered

How to avoid negative intermediate guess in nlmefit

If a parameter P needs to be positive, sometimes people will instead estimate a parameter logP and then use exp(logP) in place o...

How to avoid negative intermediate guess in nlmefit

If a parameter P needs to be positive, sometimes people will instead estimate a parameter logP and then use exp(logP) in place o...

5 years ago | 0

| accepted

Answered

Import Custom Distributions programmatically

This command shows the distributions that are available: >> makedist ans = 'beta' ... 'wei...

Import Custom Distributions programmatically

This command shows the distributions that are available: >> makedist ans = 'beta' ... 'wei...

5 years ago | 0

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 ...

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 ...

5 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...

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...

5 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...

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...

5 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: ...

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: ...

5 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...

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...

5 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...

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...

5 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...

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...

5 years ago | 0