Answered

Convolution of two log normal distributions

Convolutions are pretty easy to do in Cupid. For example, the following code gives the attached figure muX = 9.7224; % For Ni D...

Convolution of two log normal distributions

Convolutions are pretty easy to do in Cupid. For example, the following code gives the attached figure muX = 9.7224; % For Ni D...

3 days ago | 0

| accepted

Answered

How to fit a general curve on different datasets ?

You need to set up separate independent variables for each dataset, something like this: %% Example of two datasets (3 scores e...

How to fit a general curve on different datasets ?

You need to set up separate independent variables for each dataset, something like this: %% Example of two datasets (3 scores e...

8 days ago | 0

| accepted

Answered

How to get the OLS estimate from a regression based on a vector?

How about this: deltay = diff(y); b = regress(deltay,y(1:end-1));

How to get the OLS estimate from a regression based on a vector?

How about this: deltay = diff(y); b = regress(deltay,y(1:end-1));

10 days ago | 0

Answered

How perform anova tests after using regress in MATLAB?

Elisa, I think this might do what you want: %linear regression d1 = D(:,1); d2 = D(:,2); d3 = D(:,3); t = table(d1,d2,d3);...

How perform anova tests after using regress in MATLAB?

Elisa, I think this might do what you want: %linear regression d1 = D(:,1); d2 = D(:,2); d3 = D(:,3); t = table(d1,d2,d3);...

13 days ago | 1

| accepted

Answered

How perform anova tests after using regress in MATLAB?

It's a little difficult to say because "perform ANOVA" can mean several different things with regression models. Usually the be...

How perform anova tests after using regress in MATLAB?

It's a little difficult to say because "perform ANOVA" can mean several different things with regression models. Usually the be...

14 days ago | 0

Answered

How to create a fit with more than 2 independent variables?

You might be able to do it with fminsearch, which is a very general fitting tool. The basic idea is that you write a function t...

How to create a fit with more than 2 independent variables?

You might be able to do it with fminsearch, which is a very general fitting tool. The basic idea is that you write a function t...

23 days ago | 1

| accepted

Answered

How can I distinguish between an semi exponential and Gaussian distribution.

You could check the skewness, since exponentials are quite skewed and normals are not.

How can I distinguish between an semi exponential and Gaussian distribution.

You could check the skewness, since exponentials are quite skewed and normals are not.

24 days ago | 0

Answered

2 way anova for pre post design

First reformat your data to have one row per individual. The data table 'tbl' should look something like this: Group t1 ...

2 way anova for pre post design

First reformat your data to have one row per individual. The data table 'tbl' should look something like this: Group t1 ...

25 days ago | 0

| accepted

Answered

Joint Probability of Dependent Variables

You might want to use the FileExchange contribution for joint kernel density estimation

Joint Probability of Dependent Variables

You might want to use the FileExchange contribution for joint kernel density estimation

29 days ago | 0

Answered

How can I find a p-value when dealing with a weighted sum of chi-square distributions?

I think you have to work out the distribution of the weighted sum and then check the p value in that. Here is an example, assum...

How can I find a p-value when dealing with a weighted sum of chi-square distributions?

I think you have to work out the distribution of the weighted sum and then check the p value in that. Here is an example, assum...

1 month ago | 0

| accepted

Answered

Need to append several pdf files into one global pdf file.

PDF Split and Merge works well, and it's free / open-source.

Need to append several pdf files into one global pdf file.

PDF Split and Merge works well, and it's free / open-source.

1 month ago | 0

Answered

Generate random numbers from a mixture distribution

> With this formula I obtain a concatenation from 2 distribtutions but not a mixture. Well, a mixture is just a concatenation f...

Generate random numbers from a mixture distribution

> With this formula I obtain a concatenation from 2 distribtutions but not a mixture. Well, a mixture is just a concatenation f...

2 months ago | 1

Answered

Estimate the parameters of a skewed normal distribution knowing p5, mean and p95

Here is one script for doing this with Cupid. I don't think you are guaranteed to be able to hit all three targets exactly (not...

Estimate the parameters of a skewed normal distribution knowing p5, mean and p95

Here is one script for doing this with Cupid. I don't think you are guaranteed to be able to hit all three targets exactly (not...

2 months ago | 0

Answered

Lognormal probability density function Fitting to experimental data

I'm guessing that your rp values are the tops of various bins and that the fp values are the probabilities in each bin? If so, ...

Lognormal probability density function Fitting to experimental data

I'm guessing that your rp values are the tops of various bins and that the fp values are the probabilities in each bin? If so, ...

2 months ago | 0

Answered

How to use Power Analysis to Estimate Mu for Exponential Distribution

I don't think the sampsizepwr function is appropriate here. Although the sampling distribution of the mean of exponentials is a...

How to use Power Analysis to Estimate Mu for Exponential Distribution

I don't think the sampsizepwr function is appropriate here. Although the sampling distribution of the mean of exponentials is a...

3 months ago | 0

| accepted

Answered

How can I make one of my parameters always greater than another one?

beta = alpha0 + rand;

How can I make one of my parameters always greater than another one?

beta = alpha0 + rand;

3 months ago | 1

| accepted

Answered

.mat file name as a variable

use uigetfile to manually select the file name, so that you have the name as a string, fname. Then you can use load(fname) to l...

.mat file name as a variable

use uigetfile to manually select the file name, so that you have the name as a string, fname. Then you can use load(fname) to l...

3 months ago | 0

| accepted

Answered

Matlab repeated measures anova - different result than in other packages

Hi again Rose, After playing around with this some more, I think the secret is to tell MATLAB that any numerically-coded catego...

Matlab repeated measures anova - different result than in other packages

Hi again Rose, After playing around with this some more, I think the secret is to tell MATLAB that any numerically-coded catego...

3 months ago | 0

Answered

Conduct 2x3 repeated measures ANOVA using ranova()

% Describe within-Ss design: WithinFacs = table([1 1 1 2 2 2]',[1 2 3 1 2 3]','VariableNames',{'C1','C2'}); % In the next line...

Conduct 2x3 repeated measures ANOVA using ranova()

% Describe within-Ss design: WithinFacs = table([1 1 1 2 2 2]',[1 2 3 1 2 3]','VariableNames',{'C1','C2'}); % In the next line...

3 months ago | 0

Answered

ranova with two within factors

datatable.Properties.VariableNames = {'pre_A','pre_B','post_A','post_B'}; % When you have more than one repeated-measures fac...

ranova with two within factors

datatable.Properties.VariableNames = {'pre_A','pre_B','post_A','post_B'}; % When you have more than one repeated-measures fac...

3 months ago | 1

| accepted

Answered

How to perform Welch ANOVA?

You have to download these functions from FileExchange--they are not built-ins. E.g. wanova

How to perform Welch ANOVA?

You have to download these functions from FileExchange--they are not built-ins. E.g. wanova

3 months ago | 0

| accepted

Answered

Re-centering a t-skew distribution

I take it you want to find the values a,b for a linear transformation such that newScores = a + b*oldScores; Presumably you ca...

Re-centering a t-skew distribution

I take it you want to find the values a,b for a linear transformation such that newScores = a + b*oldScores; Presumably you ca...

4 months ago | 0

Answered

N-way ANOVA wrong results

Both of the MATLAB output tables make sense to me, but I don't really know what SPSS is doing. For the MATLAB continuous case, ...

N-way ANOVA wrong results

Both of the MATLAB output tables make sense to me, but I don't really know what SPSS is doing. For the MATLAB continuous case, ...

4 months ago | 1

Answered

N-way ANOVA wrong results

The SPSS output does not match up with the data that you posted, so maybe you should check that analysis first. For your connec...

N-way ANOVA wrong results

The SPSS output does not match up with the data that you posted, so maybe you should check that analysis first. For your connec...

4 months ago | 0

Answered

How to fit a curve above/below another one?

> I am afraid you posted the answer as a comment. Oops. Let this be the follow-up to the above as an answer. >do you have a ...

How to fit a curve above/below another one?

> I am afraid you posted the answer as a comment. Oops. Let this be the follow-up to the above as an answer. >do you have a ...

4 months ago | 1

| accepted

Answered

Histogram fitting best distribution

If you haven't tried it already, maybe tell distfit to use the 'kernel' option.

Histogram fitting best distribution

If you haven't tried it already, maybe tell distfit to use the 'kernel' option.

4 months ago | 0

| accepted

Answered

How to shuffle with replacement every n values of a given dataset into 1000 new sequences

It might be easier to reshape your matrix so you don't have to worry so much about index bookkeeping. E.g. Seq = 1:5000; Incre...

How to shuffle with replacement every n values of a given dataset into 1000 new sequences

It might be easier to reshape your matrix so you don't have to worry so much about index bookkeeping. E.g. Seq = 1:5000; Incre...

4 months ago | 0

Answered

How to obtain exponential equation parameter from probplot function?

For a standard exponential distribution, probability = 1 - exp(-lambda*x) where x is the data value and lambda is the paramete...

How to obtain exponential equation parameter from probplot function?

For a standard exponential distribution, probability = 1 - exp(-lambda*x) where x is the data value and lambda is the paramete...

4 months ago | 1

Answered

Crop a normal distribution to a predefined uniform distribution

Maybe: Choose an interval randomly (e.g., the middle distribution in your original figure seems to have about 14 intervals rang...

Crop a normal distribution to a predefined uniform distribution

Maybe: Choose an interval randomly (e.g., the middle distribution in your original figure seems to have about 14 intervals rang...

4 months ago | 0

| accepted

Answered

How to display text in the command window?

if abs(a-b)<0.0001 disp('LHS==RHS') end

How to display text in the command window?

if abs(a-b)<0.0001 disp('LHS==RHS') end

4 months ago | 1

| accepted