Skip to content

Commit

Permalink
exported describe, fixed syntax error in mcse implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
trappmartin committed Aug 29, 2018
1 parent 898df89 commit 8595b1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/MCMCChain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ using SpecialFunctions

export Chains, getindex, setindex!
export plot, traceplot, meanplot, densityplot, histogramplot, mixeddensityplot, autcorplot
export describe

# export diagnostics functions
export discretediag, gelmandiag, gewekediag, heideldiag, rafterydiag
Expand Down
2 changes: 1 addition & 1 deletion src/mcse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function mcse_bm(x::Vector{T}; size::Integer=100) where {T<:Real}
throw(ArgumentError(
"iterations are < $(2 * size) and batch size is > $(div(n, 2))"
))
mbar = [mean(x[i * size + (1:size)]) for i in 0:(m - 1)]
mbar = [mean(x[i * size .+ (1:size)]) for i in 0:(m - 1)]
sem(mbar)
end

Expand Down

0 comments on commit 8595b1d

Please sign in to comment.