Answered

Alternative for two way anova

One option is to ignore the problem and do ANOVA despite the non-normality. ANOVA is pretty robust with respect to normality vi...

Alternative for two way anova

One option is to ignore the problem and do ANOVA despite the non-normality. ANOVA is pretty robust with respect to normality vi...

environ 7 heures ago | 0

Answered

How can I fit a flexible distribution to a set of percentiles?

A normal distribution fits very well: see attached for a figure and the matlab code to generate it. There is no obvious skew (5...

How can I fit a flexible distribution to a set of percentiles?

A normal distribution fits very well: see attached for a figure and the matlab code to generate it. There is no obvious skew (5...

1 jour ago | 0

| accepted

Answered

Plotting a line representing Spearman's correlation on a scatterplot

I'm not sure a mismatch between slope and correlation is necessarily a problem. Note that the slope doesn't equal the correlati...

Plotting a line representing Spearman's correlation on a scatterplot

I'm not sure a mismatch between slope and correlation is necessarily a problem. Note that the slope doesn't equal the correlati...

7 jours ago | 0

Answered

How to exclude data when fitting an exponential distribution

You can make use of the memory-less property of the exponential here--the mean remaining time is independent of how much time ha...

How to exclude data when fitting an exponential distribution

You can make use of the memory-less property of the exponential here--the mean remaining time is independent of how much time ha...

7 jours ago | 1

| accepted

Answered

Can MATLAB Handle a Triple Nested Struct?

Haven't tried it, but it seems like this should work: for i = 1:length(Calendar) for j=1:12 Calendar(i).Month(j)....

Can MATLAB Handle a Triple Nested Struct?

Haven't tried it, but it seems like this should work: for i = 1:length(Calendar) for j=1:12 Calendar(i).Month(j)....

8 jours ago | 1

Answered

setting up a nested data structure

Your information architecture diagram doesn't look quite right. For example, your [Females] should be a structure that holds hei...

setting up a nested data structure

Your information architecture diagram doesn't look quite right. For example, your [Females] should be a structure that holds hei...

9 jours ago | 0

| accepted

Answered

Distribution Fitting Tool - finding of best fitting distribution type

It depends on exactly what you mean by "best fitting curve". In general, there is certainly no guarantee that the best-fitting ...

Distribution Fitting Tool - finding of best fitting distribution type

It depends on exactly what you mean by "best fitting curve". In general, there is certainly no guarantee that the best-fitting ...

10 jours ago | 0

| accepted

Answered

Obtain a random number from a truncated normal distribution

You seem to be asking for something like this: pretruncMean = 0.9; pretruncSD = 1; untruncated = makedist('Normal',pretruncMe...

Obtain a random number from a truncated normal distribution

You seem to be asking for something like this: pretruncMean = 0.9; pretruncSD = 1; untruncated = makedist('Normal',pretruncMe...

10 jours ago | 1

| accepted

Answered

Constrain regression coefficients to be equal

Make a new variable with IndependentSum = Independent1 + Independent2; and then fit the model with Dependent~IndependentSum

Constrain regression coefficients to be equal

Make a new variable with IndependentSum = Independent1 + Independent2; and then fit the model with Dependent~IndependentSum

11 jours ago | 0

| accepted

Answered

How do I make a probability plot with data on the y axis and probability on the x axis?

Something like this: % some random data for an example nSample = 500; floodData = rand(nSample,1); % percentiles/probabili...

How do I make a probability plot with data on the y axis and probability on the x axis?

Something like this: % some random data for an example nSample = 500; floodData = rand(nSample,1); % percentiles/probabili...

16 jours ago | 0

Answered

How to calculate random Correlation Pairs

Make a matrix A with one column for each voxel, and then use cormatrix = corrcoef(A) The output will be the correlations for a...

How to calculate random Correlation Pairs

Make a matrix A with one column for each voxel, and then use cormatrix = corrcoef(A) The output will be the correlations for a...

16 jours ago | 0

Answered

How to calculate a transformed distribution in Matlab?

Depending on the transformations you have in mind, you may be able to do what you want with Cupid. It's transformation distribu...

How to calculate a transformed distribution in Matlab?

Depending on the transformations you have in mind, you may be able to do what you want with Cupid. It's transformation distribu...

17 jours ago | 1

Answered

Chi square test: non parametric

It sounds like this is what you want: % Create some fake data to use as an example, % with 3 groups of different sizes; score...

Chi square test: non parametric

It sounds like this is what you want: % Create some fake data to use as an example, % with 3 groups of different sizes; score...

23 jours ago | 1

| accepted

Answered

fitglme error says data is not full rank, but it is.

I'm guessing: (1) your ID column is a unique identifier rather than an actual numerical predictor value, and (2) you only have o...

fitglme error says data is not full rank, but it is.

I'm guessing: (1) your ID column is a unique identifier rather than an actual numerical predictor value, and (2) you only have o...

23 jours ago | 0

Answered

How can i speed up my nested for loops ?

You can speed this up to some degree by rearranging the order of your for loops. For example, consider: d1 = floor((n1*x/c)...

How can i speed up my nested for loops ?

You can speed this up to some degree by rearranging the order of your for loops. For example, consider: d1 = floor((n1*x/c)...

28 jours ago | 0

Answered

mvncdf - invert sum direction

(1) There is no way to get mvncdf to be larger at (6,7) than at (6,13). (2) It might be useful to you to reconceptualize X2 as ...

mvncdf - invert sum direction

(1) There is no way to get mvncdf to be larger at (6,7) than at (6,13). (2) It might be useful to you to reconceptualize X2 as ...

28 jours ago | 0

| accepted

Answered

y-axis meaning using a ksdensity plot

The y-axis is scaled such that the total area under the density is 1. (area = probability with continuous distributions.) Since ...

y-axis meaning using a ksdensity plot

The y-axis is scaled such that the total area under the density is 1. (area = probability with continuous distributions.) Since ...

environ un mois ago | 0

| accepted

Answered

How to setup a Repeated Measurements. model and then perform a Manova

tbl = readtable("libro6.xlsx"); % Remove control group control = tbl.Exp_Group == 9; tbl(control,:) = []; % Define & fit...

How to setup a Repeated Measurements. model and then perform a Manova

tbl = readtable("libro6.xlsx"); % Remove control group control = tbl.Exp_Group == 9; tbl(control,:) = []; % Define & fit...

environ un mois ago | 1

| accepted

Answered

Generate random sequence number with condition

Here is another distributional option with a figure showing the comparison to Bruno's: %% Bruno's solution P=interp1([0 0.9 1]...

Generate random sequence number with condition

Here is another distributional option with a figure showing the comparison to Bruno's: %% Bruno's solution P=interp1([0 0.9 1]...

environ un mois ago | 0

Answered

count of times if condition is met

put hits = 0; before the 'for' loop. You are resetting hits to 0 each time you check a new ptarget

count of times if condition is met

put hits = 0; before the 'for' loop. You are resetting hits to 0 each time you check a new ptarget

environ un mois ago | 0

Answered

Using bootstrp with matrices to bootstrap cross-correlations using xcorr?

Bootstrapping involves taking random resamples of the existing data to create datasets of the same size, but it is not exactly w...

Using bootstrp with matrices to bootstrap cross-correlations using xcorr?

Bootstrapping involves taking random resamples of the existing data to create datasets of the same size, but it is not exactly w...

environ un mois ago | 0

Answered

How to makedisk for a three parameter weibull distribution

MATLAB's Weibull distribution only allows 2 parameters, so you must handle the offset separately. Try this: t0 = 0.5; % b ...

How to makedisk for a three parameter weibull distribution

MATLAB's Weibull distribution only allows 2 parameters, so you must handle the offset separately. Try this: t0 = 0.5; % b ...

environ 2 mois ago | 1

| accepted

Answered

How to use fitdist or gevfit and force the GEV distribution to a specific type (Type I)

I think you want the extreme value type I or Gumbel distribution, which MATLAB seems to call the "ExtremeValue" distribution. S...

How to use fitdist or gevfit and force the GEV distribution to a specific type (Type I)

I think you want the extreme value type I or Gumbel distribution, which MATLAB seems to call the "ExtremeValue" distribution. S...

environ 2 mois ago | 0

| accepted

Answered

How should I organise data for unbalanced two factor anova analysis (anovan)

To start with, you have to make a table with 25 lines, one for each member of each group, and 4 variables for intensity plus one...

How should I organise data for unbalanced two factor anova analysis (anovan)

To start with, you have to make a table with 25 lines, one for each member of each group, and 4 variables for intensity plus one...

environ 2 mois ago | 1

| accepted

Answered

How to draw multiple random numbers from kernel estimated densities at once?

Can you reorganize your code so that you generate many random numbers at once from each density, store them in vectors, and then...

How to draw multiple random numbers from kernel estimated densities at once?

Can you reorganize your code so that you generate many random numbers at once from each density, store them in vectors, and then...

environ 2 mois ago | 0

| accepted

Answered

How do I fit gaussian function to data whose only information I have is the minimum, maximum and number of data points?

Mostly I agree with Alan, but I'd say that your guess for the number of standard deviations should not be a constant of 6 but sh...

How do I fit gaussian function to data whose only information I have is the minimum, maximum and number of data points?

Mostly I agree with Alan, but I'd say that your guess for the number of standard deviations should not be a constant of 6 but sh...

environ 2 mois ago | 0

| accepted

Answered

Within Subjects Repeated Measures ANOVA - fitting a model

The first data table definitely isn't in the format that fitrm expects. Each row of the table should be a single subject from o...

Within Subjects Repeated Measures ANOVA - fitting a model

The first data table definitely isn't in the format that fitrm expects. Each row of the table should be a single subject from o...

environ 2 mois ago | 0

Answered

passing a variable name to a function

You can use 'strings in parentheses' to address object and structure fields, so I think you can simply replace ev...

passing a variable name to a function

You can use 'strings in parentheses' to address object and structure fields, so I think you can simply replace ev...

environ 2 mois ago | 0

| accepted

Answered

How to bootstrap estimated Gamma parameters from sample 95% confidence

Generate 1000 (say) bootstrap samples from X. For each sample, compute the parameter estimates, so in the end you have 1000 est...

How to bootstrap estimated Gamma parameters from sample 95% confidence

Generate 1000 (say) bootstrap samples from X. For each sample, compute the parameter estimates, so in the end you have 1000 est...

environ 2 mois ago | 0

Answered

Convolution? Kernal density? Resample? Help!

As I understand it, you could approximate your situation (to any desired degree of accuracy) using a table with 3 columns: X Y...

Convolution? Kernal density? Resample? Help!

As I understand it, you could approximate your situation (to any desired degree of accuracy) using a table with 3 columns: X Y...

environ 2 mois ago | 0