curvefitting using function double Gaussian
8 次查看(过去 30 天)
显示 更早的评论
When I analyzed the eye-tracking data using function dg, I got two issues:
1) So many rows showing"Too few datapoints to fit subjects" after running the model.
Should I "Add Zeros" ? If I did this, a question "How many frames" came out. I'm not sure which number I should type in.
2) An error "function or variable 'hf' cannot be recognized" showed below rows of "Too few datapoints to fit subjects".
Should I add another toolbox?
Note: curvefit.m was retrieved from https://osf.io/4atgv/ Nonlinear curvefitting for Psycholinguistics (Version 29). McMurray, B. (2017).
I ran the model in the command window.
curvefit
What would you like to do? (c=curvefit, r=refit, p=plotgrid, j=jackknife, g=group and average, q=quit) >c
Function to fit?
l=logistic
dg=double gauss
e=exponential
p=power
rl=rotated logistic
x=ex-Gaussian distribution
l1gen=generative logistic with FBS eye-movement model
l2gen=generative logistic with FBS eye-movement model
dggen=Generative Assymetric Gaussian with FBS
(ENTER=dg): dg
Datafile (ENTER=mass_gaze.txt): mass_gaze.txt
Number of times to repeat each fit (with different starting parameters)(ENTER=10): 10
How many cores would you like to use? (ENTER=3): 3
Would you like to smooth your data as part of the process?
n=No smoothing
b=Smooth [B]efore Fitting
a=Smooth [A]fter fitting (for computing fit quality)
(ENTER=n): n
Exceptions File : .
Would you like to add a fixed value to the beginning of each subject/group?
n=Do not add
z=Add Zeros
m=Mean of 1st 4 samples
(ENTER=n): n
Would you like to see a grid of your fits as you run them? [y/n] (ENTER=Y) (y, n)(ENTER=y): y
Would you like to save and close your grids as you go [y/n] (ENTER=N) (y, n)(ENTER=n): y
Base outputfile name: (ENTER=mass): mass
results:
Too few datapoints to fit subject.
Too few datapoints to fit subject.
Too few datapoints to fit subject.
Too few datapoints to fit subject.
函数或变量 'hf' 无法识别。
出错 curvefit (第 678 行)
figure(hf);
P.S. my experiment data has six columns, if it is much better to understand my questions. (attached "mass_gaze.txt")
Items (1,2,3,...); ParticipantCode (o1, o2,...y1, y2,..); ParticipantType (old, young); Condition (only condition Mass); BinStartTime (0,20,40,60,...20ms as a unit); Fixation (dependent variable)
Note: I wanna analyze the language performance differences (i.e., using "Fixation") in two participant groups (i.e., PartcipantType) over time (i.e., BinStartTime) under "Mass condition".
Each participant has more than 200 rows of fixation data over time.
Thanks a lot!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!