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

Allow computing estimators directly on a PMCSimulation #257

Merged
merged 12 commits into from
Jul 4, 2024
Prev Previous commit
Next Next commit
Fix reweighting arguments
  • Loading branch information
mtsch committed Jul 4, 2024
commit 45eb072c748811a91d59e051b201a665186264ba
3 changes: 2 additions & 1 deletion src/StatsTools/reweighting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function rayleigh_replica_estimator(
return ratio_of_means(num, denom; kwargs...)
end
function rayleigh_replica_estimator(
df::DataFrame;
sim;
shift_name="shift",
op_name="Op1",
vec_name="dot",
Expand All @@ -507,6 +507,7 @@ function rayleigh_replica_estimator(
Anorm=1,
kwargs...
)
df = DataFrame(sim)
num_reps = length(filter(startswith("dτ"), names(df)))
dτ = if num_reps == 1
df.dτ[end]
Expand Down