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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 1

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 2

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 1

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

fast 14 Jahre vor | 1

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 1

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 1

| akzeptiert

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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 3

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 1

| akzeptiert

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

| akzeptiert

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

etwa 14 Jahre vor | 0

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

etwa 14 Jahre vor | 0

| akzeptiert

Mehr laden