# matlab

1. ### Logistic regression curve looks like linear regression

Hi, I performed a linear as well as a logistic regression analysis (both with Matlab) and plotted those. Now the logistic regression curve is very linear and can be described by the same function as the linear regression. I explain the linearity by the fact that it is only a very small fraction...
2. ### four data set contour Plot?

Hi... Is there any option where I Can plot four variable dataset contour plot in any software... Please reply?
3. ### Mixed-effects modelling of response data (multiple stimuli&subjects) in Matlab

Mixed-effects modelling of response data in Matlab I have preference ratings (integers from 1-to-7) for k=80 stimuli, obtained from N=30 subjects. I want to use a mixed-effects model to test how well the following variables - as fixed effects - can predict the responses(ratings): Predictor 1...
4. ### Regression for multiple scores obtained from multiple subjects

Hello, I have preference ratings (1-to-7 scale) for k=80 stimuli, obtained from N=30 subjects. I would like to do a multiple regression for these scores, against a small number of weakly-correlated predictors. Some of the predictors are continuous, others are categorical. Also, some of the...
5. ### Regression for multiple scores obtained from multiple subjects

Hello, I have preference ratings (1-to-7 scale) for k=80 stimuli, obtained from N=30 subjects. I would like to do a multiple regression for these scores, against a small number of weakly-correlated predictors. Some of the predictors are continuous, others are categorical. Also, some of the...
6. ### What ANOVA fits best?

Dear all, can anyone please advice me which ANOVA is the most suitable: An athlete has perfromed multiple runs at constant speed with three different shoes. The kinematic data was analysed for different number of cycles per shoe condition. I want to compare mean cycle times between different...
7. ### which test for a 2-way repeated measures design with multivariate data in Matlab or R

Hello, I have one of the annoying 'which test'? questions. I have trivariate metric data (x1,x2,x3) from a repeated measures design with 2 factors (one with 2 levels, one with 8; both IVs are within participant). 16 participants were tested. I would like to know whether either of the two...

9. ### How to correct the means of a variable in 4 groups matlab

I compute the mean of the variable Y in 4 groups (A B C D) that differ for age, gender and body mass index (BMI). n=89 | n=375 | n=302 | n=166 | GROUP A | GROUP B | GROUP C | GROUP D | MALE 46...
10. ### Estimating the Average and Standard Deviation with Missing Data

I need a way to shows me how the parameters of PDF, log-normal in this case, can be estimated based on a set with missing data points at the tail end of a sample. For example, Consider we had 20 numbers with specified μ and σ, and then missed two largest number of them. How do we can estimate...
11. ### CFA in MATLAB

Hello there. Does anyone know if there is any way to use the 'factoran' function in MATLAB to perform a Confirmatory Factor Analysis? Thank you so much and best wishes.
12. ### Logistic Regression as Data Transform?

Hello everyone, new here, glad to be here! I have what might be an unorthodox question. I use the matlab function 'mnrfit' http://www.mathworks.com/help/stats/mnrfit.html to compute a logistic regression model given input data. The matlab function 'mnrval' performs the inverse...
13. ### While-loop (with an example)

Hello! I am trying to understand the concepts of while-loops for programming, and was watching this tutorial on youtube. The example was given in Matlab (which I believe has a similar syntax to R): bal = 5000; year = 0; while bal<1000000 bal = 1.08*bal + 5000; year = year + 1; end...
14. ### Help with a Poisson Regression Equation

I have attached an image of an equation of Poisson Regression that i am working on for my data analysis project. I want to understand it a bit as i am new to stats. can anyone tell me whats that Capital 'T' symbol in power of w1 and w2 means? And can anyone guide me to coding this equation in...
15. ### Help with a Poisson Regression Equation

I have attached an image of an equation of Poisson Regression that i am working on. I want to understand it a bit as i am new to stats. can anyone tell me whats that Capital 'T' symbol in power of w1 and w2 means? And can anyone guide me to coding this equation in Matlab? Thanks in advance...
16. ### How to set up manova in MATLAB for multifactor analysis

I have 4 independent variables: Frequency (within-subjects, continuous, 16 levels) Amplitude (within-subjects, continuous, 3 levels) Time (between-subjects, continuous, 7 levels) Status (within-subjects, categorical, 2 levels) and 2 dependent variables: Storage (continuous) Loss...
17. ### Poisson distribution and muon decays

Hello, I have gathered muon decay data and used R's non linear least squares function to find the mean muon lifetime. I did this by taking the exponential part of the decay curve and solving for the inverse of the lifetime, where the function is Nt=N0(exp(-t/τ)+c. That bit is fine. The...
18. ### R graphs and capabilities

Hello everyone, I am a MATLAB-user (in my previous work & education) but my company has R installed (and I don’t think there is the will to get an expensive MATLAB license). I am vaguely familiar with R as I used it for a statistics class 8 years ago, but I haven’t touched it since then...
19. ### Should I substract the mean before cross-correlation in a particular case or not?

Hello, I have a question about the cross-correlation. I have 2 data sets, one is binned and another is not, 9000 values every. Something like this: a = [23 45 88 9 0 29 30 60 0 2 10 100 0 60 90] b = [0 0 0 1 1 0 0 0 0 0 0 1 0 0 1] Actually, the "b" is the set of events (yes/now) which occurs...
20. ### MATLAB : table & contingency table

I have the following data : data=[1 3 5 1;2 3 2 3;3 3 5 1;4 4 5 1;5 3 2 1;6 4 2 3;7 3 5 1;8 4 5 1;9 3 4 1;10 4 2 1]; Now i have to make a table of column 2 and 3 separately.I am not clear what it is asking for. Do i need to compute the frequency table like the following...