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

Adjust p-values in gof.ergm.ego() for uncertainty in estimates of GoF statistics. #30

Open
krivit opened this issue Dec 22, 2018 · 0 comments

Comments

@krivit
Copy link
Member

krivit commented Dec 22, 2018

This is challenging, since the the statistics are assumed to be approximately normal under egocentric sampling, whereas the simulated statistic distribution is estimated empirically. It is not clear, in particular whether for a simulated (univariate) statistic vector sim.stat, and obs.stat.est and obs.stat.stderr egocentrically inferred statistics, the better "p-value" is

min(mean(pnorm(sim.stat, obs.stat.est, obs.stat.stderr)),
    mean(pnorm(sim.stat, obs.stat.est, obs.stat.stderr, lower.tail=FALSE)))

or

mean(pmin(pnorm(sim.stat, obs.stat.est, obs.stat.stderr),
          pnorm(sim.stat, obs.stat.est, obs.stat.stderr, lower.tail=FALSE)))

or if neither is valid.

@krivit krivit transferred this issue from another repository May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant