This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# source iterm2.zsh | |
# iTerm2 tab color commands | |
# https://iterm2.com/documentation-escape-codes.html | |
if [[ -n "$ITERM_SESSION_ID" ]]; then | |
tab-color() { | |
echo -ne "\033]6;1;bg;red;brightness;$1\a" | |
echo -ne "\033]6;1;bg;green;brightness;$2\a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a1 <- c(4.2,3.2,11.1,1.3,2.2,2.0) | |
a2 <- c(3.9,3.2,10.0,0.8,3.1,3.1) | |
a3 <- c(6.3,2.5,9.8,0.9,2.2,2.4) | |
a4 <- c(4.4,3.1,9.8,0.8,3.3,2.7) | |
a5 <- c(4.8,3.0,9.9,0.7,3.3,2.4) | |
a6 <- c(4.0,3.4,10.5,0.7,3.3,2.1) | |
a <- rbind(a1,a2,a3,a4,a5,a6) | |
# Get data into tidy format, starting with a, defined above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SmoothCoefficientPlot <- function(models, modelnames = "", removeintercept = FALSE){ | |
# models must be a list() | |
Alphas <- seq(1, 99, 2) / 100 | |
Multiplier <- qnorm(1 - Alphas / 2) | |
zzTransparency <<- 1/(length(Multiplier)/4) | |
CoefficientTables <- lapply(models, function(x){summary(x)$coef}) | |
TableRows <- unlist(lapply(CoefficientTables, nrow)) |
NewerOlder