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

14 dagen 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;

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

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

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

ongeveer een maand 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...

ongeveer een maand 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

ongeveer een maand 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...

ongeveer een maand 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, ...

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

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

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

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

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

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

ongeveer 2 maanden 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

ongeveer 2 maanden 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(...

ongeveer 2 maanden 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}

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

ongeveer 2 maanden 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

ongeveer 2 maanden ago | 0

Submitted

BudgetCluster

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

2 maanden ago | 1 download |

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

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

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

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

2 maanden ago | 0

| accepted

Answered

Presenting random images from a file, where each image is presented only once?

Store a random sequence of the images in advance and then cycle through them one by one. Something like this, emotionalImageDi...

Presenting random images from a file, where each image is presented only once?

Store a random sequence of the images in advance and then cycle through them one by one. Something like this, emotionalImageDi...

2 maanden ago | 0

| accepted

Answered

How to find parameter of function using MLE method?

It looks like you have defined DGDpdf as having a single argument, the vector phat. But when you call DGDpdf within Llikef, you...

How to find parameter of function using MLE method?

It looks like you have defined DGDpdf as having a single argument, the vector phat. But when you call DGDpdf within Llikef, you...

3 maanden ago | 0

Answered

Proving CLT using real data

I'm not sure exactly what you would accept as proving CLT, but you find this helpful: X_bar = bootstrp(1000,@mean,Data); histo...

Proving CLT using real data

I'm not sure exactly what you would accept as proving CLT, but you find this helpful: X_bar = bootstrp(1000,@mean,Data); histo...

3 maanden ago | 0

Answered

Fit Lognormal function on already generated bins

Cupid has a command called EstChiSq that will do this. See https://github.com/milleratotago/Cupid

Fit Lognormal function on already generated bins

Cupid has a command called EstChiSq that will do this. See https://github.com/milleratotago/Cupid

3 maanden ago | 0

Answered

How can I separate a bimodal distribution into two normal distributions?

GMModel = fitgmdist(x,2); % Your data are in x

How can I separate a bimodal distribution into two normal distributions?

GMModel = fitgmdist(x,2); % Your data are in x

3 maanden ago | 0