답변 있음
GLM with a custom link function
Tal, the link function in a GLM maps the expected value to the linear predictor X*beta, and the inverse link does the opposite. ...

13년 초과 전 | 0

답변 있음
Question about kmeans centroid
Rebecca, are you seeing something like this? >> x = rand(1000,1); >> [idx,c] = kmeans(x,20); >> c2 = grpstats(x...

13년 초과 전 | 0

답변 있음
How does matlab do maximum likelihood on custom functions?
Ordinarily, the mle function minimizes the negative log-likelihood that you have defined (either as a PDF, or a log PDF, or as t...

13년 초과 전 | 0

| 수락됨

답변 있음
Necessary Number of Factors in Factor Analysis
PCA and Factor Analysis (at least the form of FA that factoran performs, known as common factor analysis) are _completely differ...

13년 초과 전 | 0

답변 있음
using fminsearch on several data sets simultaneously
The usual way to do this is by using what are called "dummy variables". I can't tell what you mean by, "I have several data se...

거의 14년 전 | 0

답변 있음
display dataset showing full char entries
Peter, you may find that using a cell array of strings rather than a char matrix gets you what you are looking for: >> a = ...

거의 14년 전 | 0

답변 있음
[Num,Txt,Raw]=xlsread......
Cristina, if you have access to the Statistics Toolbox, you might find that using a dataset array is helpful the kind of thing y...

거의 14년 전 | 0

답변 있음
logistic regression
What most people mean by "logistic tregression" is a binomial response: number of "successes" vs. number of "failures". Unless...

거의 14년 전 | 0

| 수락됨

답변 있음
Generate noise using Box muller meathod
Is there some reason why you are not using the randn function?

거의 14년 전 | 0

답변 있음
K-means Clustering
Avishek, it's not clear what you mean by "NOT getting a good clustering". If I understand your code correctly, you are plotting...

거의 14년 전 | 0

답변 있음
Varimax Rotation on 'COEFF' matrix output from princomp command giving strange output
Kaitlin, I think this is an artifact of your using the maximal number of PCs. Varimax attempts to find a rotation of your PCs s...

거의 14년 전 | 0

| 수락됨

답변 있음
Issues with function Join
Roy, in your simple example, where the key variable is unique "within" and disjoint "between", the best way to get what you want...

거의 14년 전 | 0

답변 있음
How to randomly select data out of a dataset?
Another possibility if you have the Statistics Toolbox is to use cvpartition. There are various ways to use it, from the simple...

거의 14년 전 | 0

답변 있음
Fitting a Skewed Gamma Probability Distribution Function to Data, or fitting any skewed pdf to data.
Josie, since you have two variables, it sounds to me like you are not fitting a gamma PDF, but rather that you are fitting a cur...

거의 14년 전 | 3

답변 있음
Summing values with database "group by" functionality
David, your example data has a few problems, notably the percent signs. Without having any details about what you are trying to...

거의 14년 전 | 0

답변 있음
Cell Array Indexing is Much Much Much Superior to Dataset Indexing(Life is in peace now)
Please see my comments on your original thread, <http://www.mathworks.com/matlabcentral/answers/37285-memory-pre-allocation-...

거의 14년 전 | 0

답변 있음
Memory Pre allocation, Dataset Array
Ahmad, there are several things going on in this thread. Let me try to answer them one by one. A dataset array can hold just...

거의 14년 전 | 0

답변 있음
how to define specific indexes in a dataset?
aggelos, I think what you need is something like the datenum function, and not eval. As Per points out, eval'ing a date string ...

거의 14년 전 | 0

| 수락됨

답변 있음
generation of fixed random variables
If you want the same values for each iteration of the loop, you should generate the "random" values before the loop and assign t...

거의 14년 전 | 0

답변 있음
partial correlation
Most likely you have a function named corr on your path other than the one in the Statistics Toolbox. Type "which corr -all" to...

거의 14년 전 | 0

답변 있음
Transforming uniform variables to normal variables
John, presumably you know about the randn function, which generates standard normal values. So I guess that your original quest...

거의 14년 전 | 1

답변 있음
Converting Timestamps in Microsconds to DateTime Format
You might expect that, but according to what you seemed to be describing, your timestamps represent microsecond offsets from you...

거의 14년 전 | 0

답변 있음
Converting Timestamps in Microsconds to DateTime Format
Sam, If I understand what you're trying to do, this may be what you are looking for: >> refTime = datenum([2012,03,02,17,57...

거의 14년 전 | 1

답변 있음
Problems Generating Scrambled Quasi-Monte Carlo Numbers in Parfor Loops
Berk, presumably you have executed something like a matlabpool command prior to running this code. Your code creates a random...

거의 14년 전 | 0

| 수락됨

답변 있음
Fitting a double exponential cumulative distribution function
Grant, can I suggest that you take a look at http://www.mathworks.com/products/statistics/demos.html?file=/products/demos/shi...

대략 14년 전 | 0

답변 있음
Correct syntax for ksdensity() function
John, all you are missing is quotes: ksdensity(x,'kernel','epanechnikov','width',3) BUT: you say, "if I'm trying to s...

대략 14년 전 | 0

답변 있음
Why should mvnpdf function be too slow
As Oleg points out, MVNPDF is written in the MATLAB language. However, that is not to say that it is not "compiled". If you ru...

대략 14년 전 | 1

답변 있음
Numerical Precision Weak Law of Large numbers
Slow convergence is the reason why variance reduction methods such as importance sampling, antithetic sampling or quasi-random s...

대략 14년 전 | 0

답변 있음
Analyzing data from dataset structures using kruskalwallis function and grouping variable
Kruskal-Wallis as I understand it is a one-way test. Accepting two grouping variables would not make sense. Nothing to do with...

대략 14년 전 | 0

답변 있음
Analyzing data from dataset structures using kruskalwallis function and grouping variable
Chris, I think you should be using FRIEDMAN, not KRUSKALWALLIS. The latter is for a one-way test, and you're using two grouping...

대략 14년 전 | 0

더 보기