Answered
Changing 'double' to 'dataset'
Mads, "doing Leave-one-out cross validation on a dataset" is way too vague to understand what statistical model or method you're...

13 years ago | 0

Answered
Changing Double to String Automatically in a Dataset Array
Nj, you might also consider using an ordinal variable here: >> ds = dataset([10;100;10;1000;100000;1;1;10000],'VarNames','S...

13 years ago | 0

Answered
problem with gammainc function
This is just a standardization issue. The doc for MATLAB's <http://www.mathworks.com/help/matlab/ref/gammainc.html gammainc> an...

13 years ago | 1

Answered
transformation between different time representations
Elena, if your times are strings, then Azzi's suggestion is the way to go. But if your times are numeric (53221, say, as oppose...

13 years ago | 0

Answered
KMEANS delivers different results on the same data set?
Christian, the kmeans functions uses a randomly-chosen starting configuration: >> help kmeans kmeans K-means clustering...

13 years ago | 2

| accepted

Answered
How can i use categorical predictors into glm
Andrea, if you have a dataset array containing your data, GeneralizedLinearModel.fit will automatically recognize any predictor ...

13 years ago | 0

Answered
Descriptive Statistics Function for a Dataset Array
Diego, the grpstats function ordinarily works on groups within data, but it will compute summary stats on complete variables as ...

13 years ago | 0

| accepted

Answered
how to model multivariate normal distribution in matlab?
Wei, unless you want to evaluate each component's pdf separately, I think you want to use the pdf method of the gaussian mixture...

13 years ago | 0

Answered
Why does the MRG32k3a return only positive values in the internal state matrix?
The <http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/c++/streams4.pdf original paper> defines the internal state of MRG32k3...

13 years ago | 1

Answered
Random Number Generation for Parallel Computing Toolbox
Just to be clear, MATLAB initializes the random number generators on each worker so that they are definitely _not_ the same, and...

13 years ago | 1

Answered
error using multivariate Gaussian number generator (mvnrnd)
In this case, it's not the positive semi-definiteness, but the symmetry. You have relative differences that are on the order of...

13 years ago | 0

| accepted

Answered
How to duplicate certain rows of a dataset (class = dataset)?
As Matt says, no need to use loops. This might be a little simpler. First cook up some data: aa = dataset((1:100)',rand...

13 years ago | 0

Answered
How to write cell array to csv file
Lennaert, if you have access to the Statistics Toolbox, you may find using dataset arrays is one way to go. Hard to say without...

13 years ago | 0

Answered
Is randperm() consistent under different hardware platform, OS, MATLAB versions?
John, there is no difference in the random number generators between different hardware. You seem to be saying that this was ...

13 years ago | 0

Answered
combining cell and double type variables in dataset (version compatibility issue??)
Based on that error message, I think perhaps you have another dataset class that is shadowing the one in the Statistics Toolbox ...

13 years ago | 0

Answered
same values using randi setting seed as default
As others have said, randi is for "sampling with replacement", while randperm is for "sampling without replacement". If you hap...

13 years ago | 1

Answered
Linear regression for the principal components
See <http://www.mathworks.com/help/stats/examples/partial-least-squares-regression-and-principal-components-regression.html?prod...

13 years ago | 0

| accepted

Answered
Why my wblfit function gives errors
Russ, your data input x is a vector, and in any case the code checks for a vector. But you haven't said what any of your other ...

13 years ago | 0

Answered
How does one create a dataset from a large array and subsequently name the variables?
Tolulope, your question is not entirely clear. You show data = <9000x130 dataset> headers = <1x130 cell> and it's no...

13 years ago | 0

| accepted

Answered
what is the algorithm used for generating random number in rand() function?
You will find very specific literature references to all of the generators that MATLAB provides if you look in the MATLAB docume...

13 years ago | 0

Answered
How do I use MLE on a shifted gamma distribution?
Pat, thresholded distributions are typically not easy to fit by maximum likelihood. I am not sure of the details for a 3-param ...

13 years ago | 1

| accepted

Answered
How to modify mdscale such as to deal with non-Euclidean metric?
Chris, you may mean one of two things: 1) You may want to do MDS on a dissimilarity matrix that contains non-Euclidean distan...

13 years ago | 0

| accepted

Answered
[COEFF,SCORE] = princomp(X); Why is SCORE != X * COEFF ???
Hi Stewart - You forgot to center the data first: "princomp centers X by subtracting off column means". Hope this helps.

13 years ago | 0

Answered
Steepness of a Histogram
There are a few things to note about these two histograms. They have (at least approximately) the same mean. They are both (at...

13 years ago | 3

Answered
Match up two set of points in the least squares sense (procrustes command)
MRR, perhaps I am misunderstanding your question, but you're going to have to say what you mean by "a least squares sense" if yo...

13 years ago | 0

Answered
How to know seed directly?
Hsinho, you may be asking for this: >> rng shuffle >> s = rng s = Type: 'twister' Seed: 1066045100 ...

13 years ago | 1

| accepted

Answered
What is the difference between PCA solutions?
You haven't provided a lot of information about what you are actually doing. If you are using the PRINCOMP function in the St...

13 years ago | 0

Answered
I need to know each point to which cluster in kmeans fun.
Huda, you gave kmeans two points and asked it to cluster them into two clusters. It has assigned the first point to cluster 1, ...

13 years ago | 0

| accepted

Answered
Fix the seed in Matlab R2011b | Why RandStream failed?
Allen, I can't tell what you mean by, "the random numbers are the same only for first iteration when I restart Matlab." You may...

13 years ago | 0

Answered
isnan in Dataset Array
AMD, you don't say what's in your array, so I'll have to guess that because you're looking for NaNs, all of the variables are do...

14 years ago | 0

| accepted

Load more