Skip to content

Command line

The crimlab program runs a function by its R name and prints the result as a table, or as JSON with -j.

Terminal window
crimlab orrisk --or 2 --rate 0.1 --share 0.3
echo '{"done": [30, 45, 60], "open": [100, 150]}' | crimlab losbnd

Arguments come from a JSON object or a CSV table (-f FILE, or standard input) and from --ARG VALUE options, which win.

crimlab -l prints this list (optional arguments in brackets):

vodtst day night [ref] [shift]
orrisk or rate share
outtst q t [w]
dspbm pop contact force [ref]
dyadrt count pop
gtmp p [q] [hom] [theta]
cllr same diff
lrpost lr prior
mixlr p np xp nd xd
dbsrch mp n [pop]
cllrmin same diff
lrcal same diff
tipplt same diff
eceplt same diff [lo]
kinidx g1 g2 freq [rel]
patidx child father freq [mother]
clrsmp clra reca clrb recb
expbnd y m gamma [ref]
misrd r1 r0 prev se sp
rtmhs x1 x2 cut [w]
incap lam q s [share]
incapr lam t0 s [r]
sellab y rel rule [w]
losbnd done open
sntbnd y z [treat] [w]
hzdsel s h l surh surl
selftest
proof [fn]