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

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

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

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

23 days 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, ...

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

2 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;

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

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

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

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

2 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

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

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

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

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

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

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

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

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

3 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

3 months ago | 1

| accepted

Answered

Estimating a regression model using matlab

g=randn(1000,1); error=randn(1000,1); % Model: g(2:end)=k1+ k2*(g(1:end-1)-k1) + error(2:end)*k3 ; y = g(2:end); x1 = g(...

Estimating a regression model using matlab

g=randn(1000,1); error=randn(1000,1); % Model: g(2:end)=k1+ k2*(g(1:end-1)-k1) + error(2:end)*k3 ; y = g(2:end); x1 = g(...

3 months ago | 0

| accepted

Answered

Comparing table values using IF statements

Change if uRiDdD(k,1) == allContacts(i,1) to if uRiDdD{k,1} == allContacts{i,1}

Comparing table values using IF statements

Change if uRiDdD(k,1) == allContacts(i,1) to if uRiDdD{k,1} == allContacts{i,1}

3 months ago | 1

Answered

How do I extract elements from a table according to specific conditions?

I think if you want to select rows then the colon operator is in the wrong place, and that you would want something like T1(str...

How do I extract elements from a table according to specific conditions?

I think if you want to select rows then the colon operator is in the wrong place, and that you would want something like T1(str...

3 months ago | 0

| accepted

Answered

Skew Normal and Owen's T function

Here is an updated link: http://people.sc.fsu.edu/~jburkardt/m_src/asa005/tfn.m

Skew Normal and Owen's T function

Here is an updated link: http://people.sc.fsu.edu/~jburkardt/m_src/asa005/tfn.m

3 months ago | 0

Submitted

BudgetCluster

Routines for running many tasks in parallel across several computers---essentially a low-budget, low-hassle substitute for a clu...

3 months ago | 2 downloads |

Answered

How to calculate the skewness and kurtosis from MATLAB gaussian mixture model function---fitgmdist ?

The gaussians in the mixture have different means and sigmas, but since they are gaussians they all have the same skewness (0) a...

How to calculate the skewness and kurtosis from MATLAB gaussian mixture model function---fitgmdist ?

The gaussians in the mixture have different means and sigmas, but since they are gaussians they all have the same skewness (0) a...

3 months ago | 0

| accepted

Answered

linear fit with fitlm or regress

Your three variables are y, temp, and sigma? If I understand the model you want to fit, you might get a cleaner picture if you ...

linear fit with fitlm or regress

Your three variables are y, temp, and sigma? If I understand the model you want to fit, you might get a cleaner picture if you ...

3 months ago | 0

| accepted

Answered

Randomly dividing an integer (non-uniform distribution)

There are any number of ways to do that, depending on exactly what you mean by "considerably". Here are a few: %% Transform th...

Randomly dividing an integer (non-uniform distribution)

There are any number of ways to do that, depending on exactly what you mean by "considerably". Here are a few: %% Transform th...

3 months ago | 1

| accepted

Answered

How to minimize this function

If the problem is to find good starting parameter values, then maybe you could start with a grid search over your parameter spac...

How to minimize this function

If the problem is to find good starting parameter values, then maybe you could start with a grid search over your parameter spac...

3 months ago | 0

| accepted