답변 있음
KNN classification
You asked this in another posting. See my answer there.

대략 14년 전 | 0

| 수락됨

답변 있음
Gaussian Mixture Model
If you have the Statistics Toolbox, try help gmdistribution

대략 14년 전 | 0

답변 있음
calculating euclidean distance
It is likely that you have assigned D to some value, perhaps a plain numeric value, earlier in the function. So it is not a cell...

대략 14년 전 | 1

답변 있음
Ridge regression coefficient question
Good question! This took a while to figure out, and I can see the help text is not clear about it. The calculations are actually...

대략 14년 전 | 0

| 수락됨

답변 있음
k-NN search. What is the difference between these 2-codes ?
You have supplied only x, not [x z], as the first argument to knnsearch. Your newpoint vector, on the other hand, has two column...

대략 14년 전 | 0

| 수락됨

답변 있음
Addition of gaussian noise
I don't know anything about ecg signals, but "help randn" will show you how to generate Gaussian noise.

대략 14년 전 | 0

답변 있음
can someone help me to fix this error(Error using ==> kmeans at 382 An empty cluster error occurred in every replicate)
Type "help kmeans" and look at the description of the 'EmptyAction' parameter. Maybe that will help.

대략 14년 전 | 1

| 수락됨

답변 있음
Logistic mixed-effect regression example
You could use NLMEFIT to fit a response with normally distributed errors around a curve with a logistic shape. But there is no f...

대략 14년 전 | 0

답변 있음
how to define link function in glmfit
Did you really mean to specify the normal distribution? This type of link is more commonly used with the binomial distribution. ...

대략 14년 전 | 0

답변 있음
log-likelihoods from mnrfit; testing proportional-odds model
You are correct about the "dev" output. Here's an illustration using the "help mnrfit" example. I can calculate the binomial log...

대략 14년 전 | 0

| 수락됨

답변 있음
WBLFIT with Zeros
Suppose you record times to 0.01. Would it be reasonable to replace the zeros by 0.005 or some other number that would round to ...

대략 14년 전 | 0

답변 있음
cdfplot
Also not 100% sure, but consider using the ECDF function and plotting however you want. Also you could use those outputs with a ...

대략 14년 전 | 0

답변 있음
Principal Component Coefficients in princomp
The princomp function works on the centered data (variance/covariance matrix), so you need to remove the mean to reproduce the s...

대략 14년 전 | 0

| 수락됨

답변 있음
Interaction plot of medians
It is true that interactionplot wants all factor combinations present. Here's a little script that will plot medians as function...

대략 14년 전 | 0

| 수락됨

답변 있음
Is there any implemetation of the post hoc Nemenyi test in matlab?
Sorry, I'm not aware of an implementation of that test. I hope someone else may have one. In the Statistics Toolbox, the mult...

대략 14년 전 | 0

| 수락됨

답변 있음
Type III sum of squares for all predictors using regstats
Aloha. You've run into the issue that regstats doesn't want to do anova, and anovan wants to treat its x variables as categorica...

대략 14년 전 | 0

| 수락됨

답변 있음
P-value from nlinfit
For a function like f = @(b,x) b(1) + b(2)*x.^b(3); you might be interested in the p-value for a test of whether coeffic...

대략 14년 전 | 0

| 수락됨

답변 있음
nlinfit not accurately modeling data
In your model function you have "1/<stuff>" where you almost certainly intended element-by-element division, "1./<stuff>". You'l...

14년 초과 전 | 0

| 수락됨

답변 있음
finding slope/intercept/std.deviation of replicates
You can just include the x value once for each y value. If you're just talking about least squares coefficient estimation (no st...

14년 초과 전 | 1

답변 있음
Combinations of variables and step sizing for creation of DOE
Do you have the Statistics Toolbox available? It seems like what you want is a full factorial design, but with the variable leve...

14년 초과 전 | 1

답변 있음
regress and stats
One problem is that the model you fit is not the same as the "model" value you computed afterward. Or maybe the "x3" was just a ...

14년 초과 전 | 0

답변 있음
Multivariate GLMFIT and GLMVAL
Consider the code below. It fits a multi-predictor model, but plots the fit as a function of one predictor at a time, with the o...

14년 초과 전 | 0

| 수락됨

답변 있음
Vertical boxplot?
Could it be that you want to use the 'positions' argument? rowvals = [1 2 4 8]'; x = bsxfun(@plus,rowvals,randn(4,20)); ...

14년 초과 전 | 2

답변 있음
How does one use output from mnrfit to forecast nominal values
You can use the mnrval function to compute fitted probabilities, then take the category with maximum probability. Here's an exam...

14년 초과 전 | 0

답변 있음
Control Chart from SQL query results
If the column is a series of measurements taken over time, with no particular grouping to them, then there are charts like the "...

14년 초과 전 | 0

| 수락됨

답변 있음
Custom distribution in Distribution Fitting Tool
Konstantinos, I am not sure but here are some things to check. First, you create an options structure and supply it to mle like ...

14년 초과 전 | 0

답변 있음
Custom distribution in Distribution Fitting Tool
Konstantinos, this does not indicate a bad fit, as no preliminary fit is attempted. Distributions could be ruled out if they are...

14년 초과 전 | 0

| 수락됨

답변 있음
Trouble with NaiveBayes object in Statistics toolbox (R2010a)
I would not expect this to be a problem unless your path was set up in an unusual way. If I type "which nansum" I see the stats ...

14년 초과 전 | 0

답변 있음
Trouble with NaiveBayes object in Statistics toolbox (R2010a)
This is odd. it appears to be having trouble concatenating mu and sigma, which came out of these two earlier lines: mu ...

14년 초과 전 | 0

| 수락됨

답변 있음
Generate DoE matrix and test plan
Phillippe, you are right that the Statistics Toolbox offers a collection of DOE tools rather than a beginning-to-end DOE applica...

거의 15년 전 | 1

| 수락됨

더 보기