Rank: 302 based on 215 downloads (last 30 days) and 2 files submitted
photo

Philipp Berens

E-mail
Company/University
MPI for Biological Cybernetics

Personal Profile:

http://www.kyb.mpg.de/~berens

Professional Interests:
Statistics, Computational Neuroscience

 

Watch this Author's files

 

Files Posted by Philipp View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Apr 2011 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens directional statistic..., ang, circle, circular statistics, circular, statistics 200 47
  • 4.36842
4.4 | 20 ratings
09 Jul 2008 Sampling from multivariate correlated binary and poisson random variables These Matlab functions can be used to generate multivariate correlated binary variables, and correl Author: Philipp Berens 15 3
  • 4.0
4.0 | 2 ratings
Comments and Ratings by Philipp View all
Updated File Comments Rating
28 Sep 2011 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

Thanks for the comments.

@Christopher: The ~ has been introduced as a placeholder in the latest MATLAB versions for output arguments that are not needed. I will go back to some dummy variable with the next upload.

@Heida: I don't see an easy way of doing what you suggest with the functions implemented.

@Omzaz: The multi-sample tests assume independent samples. I don't know about repeated-measures ANOVA etc. for circular data. If you find anything let me know.

The option to ignore NaNs... I think this is a tricky thing, because you always make a specific choice how NaNs are treated and each user might have different preferences. I will think about it though.

15 Dec 2010 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

Hi Christopher, thanks for your feedback. I will update circ_plot with the next upload.

29 Jun 2010 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

I fixed the bug in circ_clust.

08 Feb 2010 Sampling from multivariate correlated binary and poisson random variables These Matlab functions can be used to generate multivariate correlated binary variables, and correl Author: Philipp Berens

Thank you for your inquiry. We decided not to switch this feature on in the default version (although the readme said so). In the version uploaded today, you just need to change line 33 to line 34 in sampleDichGauss01.m to use this feature.

Generally, higham.m may be used to obtain the closest correlation matrix to a predescribed matrix which is not a valid correlation matrix. In the case of sampling from binary variables, you can use this function to obtain a valid latent correlation matrix in case the usual transformation does not result in one.

07 Jan 2010 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

There has been a slight (and unfortunately undocumented) change in semantics from 2009 to the later versions.

vmpdf computes the density, i.e. it evaluates the probability density function of the von mises distribution at the designated points. The earlier version computed the approximate probability in a small bin with width (alpha(2)-alpha(1) ), as is needed if you want to plot histograms. As you will see, you can easily recover the old behavior by

p = circ_vmpdf(points(1:end-1).', mu, kappa);
p = p * diff(points(1:2));

to obtain approximate probabilities.

Comments and Ratings on Philipp's Files View all
Updated File Comment by Comments Rating
11 Jan 2012 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens Luke

Great tool.
I do have to say that circ_mtest is a bit weird.
The input is [pval, z] but output is set as [h,mu,ul,ll]

08 Dec 2011 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens Barkoczi, Balazs

Thanks for this excellent toolbox!
I have only some problems with the example files, that I downloaded from http://www.jstatsoft.org/v31/i10
example1:
??? Undefined function or method 'parseVarArgs', therefore the figure 2 isn't complete, and it hasn't axis labels.

example2:
??? Error using ==> mtimes
Inner matrix dimensions must agree.

Error in ==> example2 at 42
  zm = r*exp(i*phi);
Perhaps a dot is absent, but after this modification zm = r.*exp(i*phi); the same error occurs:
??? Undefined function or method 'parseVarArgs'
Can somebody help me to fix this problems?
Thank you very much!

11 Nov 2011 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens Fuh-Cherng

@Christopher: Thank you so much for your kindness and help. I really appreciate it.

09 Nov 2011 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens Christopher

@Fuh: indeed it should and when I step carefully through the function, sometimes the result comes out correct and sometimes it doesn't, somewhat dependent on the numbers in alpha. To fix the problem go to lines 45 and 46 of circ_median (ver 2011f). You see two inequalities, dd>=0 and dd<0. The two inequalities should be identical for consistency and the correct result. Edit line 46 to read:
    m2 = sum(dd<=0,1);
Now the function seems to behave as expected.

09 Nov 2011 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens Fuh-Cherng

I am new in circular statistics, so don't laugh at me... But I do have a question about the circ_median() function.

Say I have a data set that contains six angles [0.1 0.2 0.3 0.4 0.5 0.6]. when I feed these data into circ_median(), the function returns a median = 0.4

I thought that, when a data set contains an even number of observations, the median would be calculated as the average of the middle two numbers (i.e., (0.3+0.4)/2 = 0.35).

My code is listed below.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
alpha = [0.1 0.2 0.3 0.4 0.5 0.6]';
med = circ_median(alpha)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Can anyone help me with this?

Sincerely,
Fuh

Top Tags Applied by Philipp
ang, angular, anova, circle, circular
Files Tagged by Philipp
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Apr 2011 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens directional statistic..., ang, circle, circular statistics, circular, statistics 200 47
  • 4.36842
4.4 | 20 ratings

Contact us at files@mathworks.com