Community Profile

photo

Jeff Miller


Last seen: Today
441 total contributions since 2013

Jeff Miller's Badges

  • 36 Month Streak
  • Personal Best Downloads Level 2
  • First Review
  • 5-Star Galaxy Level 1
  • GitHub Submissions Level 3
  • First Submission
  • Pro
  • Knowledgeable Level 4
  • Revival Level 1
  • Thankful Level 2
  • First Answer

View details...

Contributions in
View by

Answered
Kahneman's Taxi problem
Generate a cab of one color or the other with the appropriate probabilities. Get the color ID response from the witness with th...

1 día ago | 0

Answered
Generate a random matrix with 4 specifik values
maybe this? j = 2.5; % insert whatever value of j you want to use vals = [1,-1, j, -j]; pos = randi(numel(vals),15,10^5); r...

1 día ago | 0

Answered
Error when running a repeated measures ANOVA
I'm pretty sure fitrm expects all of the data from a single patient to be on one row of the input data table (e.g., words)--at l...

2 días ago | 0

| accepted

Answered
Error when calling a jupyter notebook file from matlab
Just guessing here, but given that it is a file not found error, maybe you need to specify the path to the input file, something...

13 días ago | 0

Answered
Several questions regarding distributions
I don't know that there are definitive answers to any of your questions, but here are some thoughts: > most of these distributi...

13 días ago | 1

Answered
Multiple functions inside one .m file
Try the method involving static classes, as explained here by per isakson

22 días ago | 0

| accepted

Answered
Removing highest and lowest 5% of data as outliers using prctile
% Data values are in X; X2 holds remaining values after outliers removed Y = prctile(X,[5,95]); X2 = X(X>Y(1) & X<Y(2)); % ma...

23 días ago | 0

| accepted

Answered
Compare Fit of two linear models
A quick and dirty solution is to form a new variable S=IV1+IV2; and then compare the fit of the model 'DV~S' to the model 'DV~...

23 días ago | 0

| accepted

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

27 días ago | 0

| accepted

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

28 días 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...

alrededor de 1 mes 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...

alrededor de 1 mes 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)....

alrededor de 1 mes 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...

alrededor de 1 mes 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 ...

alrededor de 1 mes 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...

alrededor de 1 mes 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

alrededor de 1 mes 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...

alrededor de 1 mes 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...

alrededor de 1 mes 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...

alrededor de 1 mes 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...

alrededor de 2 meses 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...

alrededor de 2 meses 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)...

alrededor de 2 meses 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 ...

alrededor de 2 meses 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 ...

alrededor de 2 meses 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...

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

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

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

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

2 meses ago | 1

| accepted

Load more