Skip to content

Instantly share code, notes, and snippets.

Edward A. Roualdes roualdes

Block or report user

Report or block roualdes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
roualdes /
Last active Jun 21, 2019
Flatten stan-dev/math's {scal,arr,mat}/**/*.hpp
# Flatten stan/math/{prim,rev,fwd,mix} and test/unit/math/{prim,rev,fwd,mix}
# Details
# Only works with GNU sed. If you're running macOS, install GNU sed
# with homebrew. For isntance,
# $ brew intsall gnu-sed
# It is my understanding that Linux machines use GNU sed by default,
roualdes / bootdplyr.R
Last active Nov 8, 2018
Bootstrap Confidence Interval with dplyr
View bootdplyr.R
## assumed symmetric bootstrapped confidence interval
# function: bootstrap estimated standard error
boot_sd <- function(x, fun=mean, R=1001) {
fun <-
bfoo <- function(data, idx) {
You can’t perform that action at this time.