Skip to content

Instantly share code, notes, and snippets.

View aufrank's full-sized avatar

Austin F. Frank aufrank

  • Riot Games
  • St. Louis, MO
View GitHub Profile
library(rms)
library(ggplot2)
ddiamonds <- datadist(diamonds)
options(datadist = "ddiamonds")
fit.ols <- ols(price ~ carat * cut, diamonds)
## can specify a range on a continuous predictor
Predict(fit.ols, carat = seq(2,4,.25))
## can specify a single level for a categorical predictor
[diff]
tool = chdiff
[difftool]
prompt = false
[difftool "chdiff"]
cmd = /usr/bin/env chdiff "$LOCAL" "$REMOTE"
@aufrank
aufrank / gist:1167266
Created August 24, 2011 03:47 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: Cognitive science post-doc
Favorite Python project: PsychoPy https://github.com/psychopy/psychopy
Favorite Conference: International Workshop on Language Production
Python Experience Level: Intermediate
@aufrank
aufrank / mapping_trouble.clj
Created September 7, 2011 17:57
mapping trouble
(defrecord Node [^Float activation neighbors])
(def k (Node. 0.2 '(kaet)))
(def ae (Node. 0.2 '(kaet)))
(def t (Node. 0.2 '(kaet)))
(def kaet
(Node. 0.2 '(k ae t cat)))
(def cat (Node. 0.2 '(kaet)))
(map #(:activation %) (:neighbors kaet))