Dear SPM:
When plot fitted and adjusted responses spm_graph plots the responses
differently apparently based on whether the covariate has elements repeated.
I refer to lines 304 - 317 in spm_graph.
[p q] = sort(x);
if all(diff(x(q)))
plot(x(q),y(q),':b'); hold on
plot(x(q),y(q),'.b','MarkerSize',8); hold on
plot(x(q),Y(q),'r' ); hold off
else
plot(x(q),y(q),'.b','MarkerSize',8); hold on
plot(x(q),Y(q),'.r','MarkerSize',16); hold off
xlim = get(gca,'XLim');
xlim = [-1 1]*diff(xlim)/4 + xlim;
set(gca,'XLim',xlim)
end
The first type of plot is the typical blue markers at each value with tiny
blue dots connecting all the values and the red fitted response. The second
is just the blue markers at each value and the red fitted response.
Is there are reason to plot this data differently? Is this just to alert the
user?
thanks,
darren
--------------------------------------------------------------------------
Darren R. Gitelman, MD Email: [log in to unmask]
Cognitive Neurology and the Voice: (312) 908-9023
Alzheimer's Disease Center Fax: (312) 908-8789
WWW: http://www.brain.nwu.edu
Northwestern Univ., 320 E. Superior St., Searle 11-470, Chicago, IL 60611
--------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|