forked from gjvanoldenborgh/climexp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
choosevariable.cgi
executable file
·43 lines (42 loc) · 1.85 KB
/
choosevariable.cgi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
if [ -n "$EMAIL" -a "$EMAIL" != someone@somewhere ]; then
def=./prefs/$EMAIL.choosevariable
if [ -s "$def" ]; then
eval `egrep '^FORM_[a-z]*=[a-zA-Z0-9.]*;$' $def`
fi
fi
case $FORM_var in
cov) cov_checked=checked;;
sign) sign_checked=checked;;
regr) regr_checked=checked;;
errorregr) errorregr_checked=checked;;
intercept) intercept_checked=checked;;
regr1) regr1_checked=checked;;
relregr) relregr_checked=checked;;
composite) composite_checked=checked;;
errorcomp) errorcomp_checked=checked;;
chi) chi_checked=checked;;
chibar) chibar_checked=checked;;
*) corr_checked=checked;;
esac
cat << EOF
<input type="radio" class="formradio" name="var" value="corr" $corr_checked>correlation
<input type="radio" class="formradio" name="var" value="cov" $cov_checked>covariance
<input type="radio" class="formradio" name="var" value="sign" $sign_checked>significance
<br>
<input type="radio" class="formradio" name="var" value="regr" $regr_checked>regression
(<input type="radio" class="formradio" name="var" value="errorregr" $errorregr_checked>error)
<input type="radio" class="formradio" name="var" value="regr1" $regr1_checked>reverse
<input type="radio" class="formradio" name="var" value="relregr" $relregr_checked>relative regression
<br>
<input type="radio" class="formradio" name="var" value="composite" $composite_checked>composite
(<input type="radio" class="formradio" name="var" value="errorcomp" $errorcomp_checked>error)
<!-- <input type="radio" class="formradio" name="var" value="abs(corr)">abs(corr)<br> -->
<br>
extreme dependence measures
<input type="radio" class="formradio" name="var" value="chi" $ch_checked>χ,
<input type="radio" class="formradio" name="var" value="chibar" $chibar_checked>χbar,
threshold
<input type="$number" step=any class="forminput" name="threshold" $textsize2 style="width: 4em;" value="${FORM_threshold:-90}">%
<br>
EOF