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
roualdes / flatten.sh
Last active Apr 5, 2019
Flatten stan-dev/math's {scal,arr,mat}/**/*.hpp
View flatten.sh
# 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
roualdes / bootdplyr.R
Last active Nov 8, 2018
Bootstrap Confidence Interval with dplyr
View bootdplyr.R
library(boot)
library(dplyr)
## assumed symmetric bootstrapped confidence interval
# function: bootstrap estimated standard error
boot_sd <- function(x, fun=mean, R=1001) {
fun <- match.fun(fun)
bfoo <- function(data, idx) {
fun(data[idx])
}
You can’t perform that action at this time.