Skip to content

Instantly share code, notes, and snippets.

View kkholst's full-sized avatar
🙈

Klaus K. Holst kkholst

🙈
View GitHub Profile
@kkholst
kkholst / Epidemiology
Last active March 23, 2017 08:48
Epidemiology
Solutions to selected exercises...
ihd: Exercise 2.3
bcg: Exercise 2.4
estradiol.sas: Mediation exercise
estradiol.R : Mediation exercise
@kkholst
kkholst / acte.R
Last active November 10, 2017 12:29
require(mets)
require(magrittr)
acte.sim <- function(a=1,c=0.5,t=0.5,e=1,n=1000) {
m <- lvm() %>%
regression(y1~a1+c+t, value=~a+c+t, latent=~a1+c+t) %>%
regression(y2~a2+c+t, value=~a+c+t, latent=~a2+c+t) %>%
latent(~a1+a2+c+t) %>%
intercept(~y1+y2, value=~mu) %>%
covariance(~y1+y2, value=~ve) %>%
@kkholst
kkholst / _Data
Last active August 27, 2018 07:12
Data
Collection of public and simulated datasets

Keybase proof

I hereby claim:

  • I am kkholst on github.
  • I am klausholst (https://keybase.io/klausholst) on keybase.
  • I have a public key ASCGOrpBDugvnX9mmCnPGRO9J_hdSWD4izwroGq-EZVolQo

To claim this, I am signing this object:

"ID","SEX","AGE","FRW","SBP","DBP","CHOL","CIG","CHD"
1070,2,45,93,100,62,220,0,0
1081,1,48,93,108,70,340,0,0
1123,2,45,91,160,100,171,0,0
1215,1,50,110,110,70,224,0,0
1267,1,48,85,110,70,229,25,0
1407,1,55,101,134,84,224,0,0
1429,2,53,79,122,68,270,0,0
1452,2,45,110,138,88,260,0,0
1462,2,58,106,126,70,279,0,5
@kkholst
kkholst / config
Last active July 7, 2023 07:30
Configuration
alias config='/usr/bin/git --git-dir=$HOME/.config/dotfiles --work-tree=$HOME'
echo 'hello, world'
/usr/bin/alias zz='echo hej'