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

4 jours 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]...

6 jours 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

8 jours 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...

11 jours 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 ...

17 jours 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...

19 jours 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...

20 jours 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...

21 jours 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...

21 jours 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...

23 jours 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...

24 jours 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...

25 jours 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...

28 jours ago | 0

Answered

How to import workspace in a function

I don't really understand what you are trying to do, but maybe an answer to this question will help: % If I convert the functio...

How to import workspace in a function

I don't really understand what you are trying to do, but maybe an answer to this question will help: % If I convert the functio...

environ un mois ago | 0

Answered

Calculating constant hazards in exponential survival distributions

The exponential distribution is a one-parameter distribution, so all you can do is estimate that parameter. Once you have that ...

Calculating constant hazards in exponential survival distributions

The exponential distribution is a one-parameter distribution, so all you can do is estimate that parameter. Once you have that ...

environ un mois ago | 0

| accepted

Answered

How to generate the convolution density and integrate it on [a,b] fastly and precisely?

If your random variables X and Y are independent, Cupid might be helpful. It defines a general convolution RV for any continuous...

How to generate the convolution density and integrate it on [a,b] fastly and precisely?

If your random variables X and Y are independent, Cupid might be helpful. It defines a general convolution RV for any continuous...

environ un mois ago | 0

| accepted

Answered

How reliable is fitdist with regard to the gamma-distribution?

If your overall goal is to check on the accuracy of fitdist, then I think your method is flawed because the data you construct (...

How reliable is fitdist with regard to the gamma-distribution?

If your overall goal is to check on the accuracy of fitdist, then I think your method is flawed because the data you construct (...

environ un mois ago | 0

| accepted

Answered

Someone please help me, I have probability mass function as follwing, How can generate 100 random values of j from this probability mass function?

If you would like to generate 100 random j values, use the function KSSV gave you to generate the f values for the probability m...

Someone please help me, I have probability mass function as follwing, How can generate 100 random values of j from this probability mass function?

If you would like to generate 100 random j values, use the function KSSV gave you to generate the f values for the probability m...

environ un mois ago | 0

| accepted

Answered

How reliable is fitdist with regard to the gamma-distribution?

I think fitdist is doing the best it can, but you gave it a non-gamma sample to fit because you truncated the X range at 20. Not...

How reliable is fitdist with regard to the gamma-distribution?

I think fitdist is doing the best it can, but you gave it a non-gamma sample to fit because you truncated the X range at 20. Not...

environ un mois ago | 1

Answered

How to write function to generate gaussian distribution of normal numbers with specified mean, variance and number of values?

you must return something from your function: function x = distribution(va, mu, ul, ll, nvals)

How to write function to generate gaussian distribution of normal numbers with specified mean, variance and number of values?

you must return something from your function: function x = distribution(va, mu, ul, ll, nvals)

environ un mois ago | 0

| accepted

Answered

Why the p value is so small in mann-whitney test?

I think you use ranksum like this: [p, h, stats] = ranksum (A,B) With your command, it is testing whether the A & B scores are...

Why the p value is so small in mann-whitney test?

I think you use ranksum like this: [p, h, stats] = ranksum (A,B) With your command, it is testing whether the A & B scores are...

environ un mois ago | 0

| accepted

Answered

How to generate random numbers with constraints and different boundaries (for a high dimension)?

I don't know if this will be any use to you, but here is a way to generate "random" scores that meets some of your criteria (i.e...

How to generate random numbers with constraints and different boundaries (for a high dimension)?

I don't know if this will be any use to you, but here is a way to generate "random" scores that meets some of your criteria (i.e...

environ 2 mois ago | 0

Answered

systematic random sampling from excel file

Let's say you have 537 people in your excel file, numbered 1-537. You can use the command participants = randperm(537) to rand...

systematic random sampling from excel file

Let's say you have 537 people in your excel file, numbered 1-537. You can use the command participants = randperm(537) to rand...

environ 2 mois ago | 0

| accepted

Answered

Integrate kernel probability distribution function

If you just want to know the percentages in various ranges, it seems easier to tabulate the scores directly than to mess about w...

Integrate kernel probability distribution function

If you just want to know the percentages in various ranges, it seems easier to tabulate the scores directly than to mess about w...

environ 2 mois ago | 0

Answered

How to find 'within group correlation'?

I would guess the idea is this: grp0 = t == 0; grp1 = t == 1; corr(x(grp0,:)) corr(x(grp1,:))

How to find 'within group correlation'?

I would guess the idea is this: grp0 = t == 0; grp1 = t == 1; corr(x(grp0,:)) corr(x(grp1,:))

2 mois ago | 0

Answered

matrix of random distribution

n = 8; % whatever n you want sd = 1; % whatever you want for the standard deviation of the normal distribution in ...

matrix of random distribution

n = 8; % whatever n you want sd = 1; % whatever you want for the standard deviation of the normal distribution in ...

2 mois ago | 1

| accepted

Answered

generate random sample for linear regression

% First you have to define the characteristics of x1, x2, and e. % These can be any values you want, such as: mu1 = 0; % M...

generate random sample for linear regression

% First you have to define the characteristics of x1, x2, and e. % These can be any values you want, such as: mu1 = 0; % M...

2 mois ago | 1

| accepted

Answered

Detect collinear points in a 3d points cloud

This is going to be a pretty fuzzy suggestion: Maybe you can speed things up by temporarily throwing away precision. The idea i...

Detect collinear points in a 3d points cloud

This is going to be a pretty fuzzy suggestion: Maybe you can speed things up by temporarily throwing away precision. The idea i...

3 mois ago | 0

Answered

How can I generate Conditional Lognormal distribution

Those mu and sigma values don't look right for lognormal distributions. These distributions have only positive values, so they ...

How can I generate Conditional Lognormal distribution

Those mu and sigma values don't look right for lognormal distributions. These distributions have only positive values, so they ...

3 mois ago | 0

| accepted

Answered

log likelihood output from the distribution fitter app

Just be a bit careful here... I think those log likelihood values are likelihoods under the maximum likelihood parameter estima...

log likelihood output from the distribution fitter app

Just be a bit careful here... I think those log likelihood values are likelihoods under the maximum likelihood parameter estima...

3 mois ago | 0