Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: "Rerun with increased df" #2

Open
kdkorthauer opened this issue Nov 10, 2017 · 1 comment
Open

Warning: "Rerun with increased df" #2

kdkorthauer opened this issue Nov 10, 2017 · 1 comment

Comments

@kdkorthauer
Copy link
Contributor

Hi,

I'm trying to run FDRreg with default parameters except for nulltype='empirical'. However, I get many warnings like the following:

f(z) misfit = -0.2. Rerun with increased df.

I think I have tracked this down to the efron function call. It seems to be an issue with the fitting of the empirical Z-score distribution. The warning suggests to run with an increased degrees of freedom, which is taken from the control input list (specifically, the densknots parameter, default value is 10). I tried to get advice for how much to increase this parameter from the documentation, but was a bit confused by the help file for FDRreg, which says:

nmids, densknots: Only used if method='efron'; this functionality is retained for legacy reasons and is not recommended for actual data analysis. nmids: How many histogram midpoints are used in Efron's spline-based estimator of f(z). Defaults to 150. densknots: how many spline knots. Defaults to 10.

Is the 'empirical' null type not recommended for actual data analysis? If it is, do you have any practical advice for how to set this densknots parameter?

Thanks in advance,
Keegan

@jgscott
Copy link
Owner

jgscott commented Nov 20, 2017

Thanks for bringing this up. You can use densknots with a higher value and it will behave as you expect, i.e. with a higher degrees of freedom for Efron's central matching estimator for the empirical null. It's the documentation that's deprecated rather than the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants