<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />2x2 contingency table을 수동으로 만들어서 예쁘게 보이도록 하려고 합니다. 하지만 표시 상자 작업, 특히 굵게 표시, 가운데 정렬 텍스트 등으로 작업하는 데 어려움을 겪고 있습니다. 내 주된 불만은 String Column Box 값을 굵게 표시하는 것입니다(20행).
nw = New Window( "Custom Report",
Tab Box(
"Manual 2x2 Contingency",
V List Box(
H List Box(
V Center Box(
Border Box(
Text Box( "Mutant Test", <
<
<
<< bottom( 20 ), //adds some space especially when the title might be just a few characters
<< Left( 5 ),
<
<
)
),
V List Box(
H List Box(
Border Box(
Text Box( "Sequencing Test", <
<< set background color( 2 ),
<
<
<
<< Right( 50 ), //adds some visual space especially when the title might be just a few characters
<< sides( 15 )
)
),
Table Box(
String Col Box( "", {"Pos", "Neg"} ), //really wish these were bold!
Number Col Box( "Pos", {2225, 25} ), //would like borders or gridlines around just the numbers
Number Col Box( "Neg", {12, 2258} ) //would like borders or gridlines around just the numbers
),
Text Box( "" ), //visual space
Text Box( "" ), //visual space
Text Box( "" )//visual space
)
),
Outline Box( "Statistical Calculations", //add all the stats calculations and score confidence interval calculations
V List Box(
Table Box(
String Col Box( "Correlation Calculation",
{"Sensitivity / Positive Agreement", "Specificity / Negative Agreement", "Positive Predictive Value"}
),
String Col Box( " ", {" ", " ", " "} ), //visual space
String Col Box( "Equation", {"a/a+c", "d/b+d", "a/a+b"} ),
String Col Box( " ", {" ", " ", " "} ), //visual space
String Col Box( "Value", {"98.9%", "99.5%", "99.5%"} ),
String Col Box( " ", {" ", " ", " "} ), //visual space
String Col Box( "Score Confidence Interval", {"blah", "blah", "97.2-99.9"} )
),
Text Box( "" ), //visual space
Text Box( "Note: Calculated according to CLSI EP12-A2", <
Text Box( "" ) //visual space
)
),
Outline Box( "McNemars", //add the stats for McNemar determine if continuity correction is needed.
V List Box(
Table Box(
String Col Box( "McNemar", {"Degrees of Freedom", "P Value", "Chi", "Continuity Correction"} ),
String Col Box( " ", {" ", " ", " "} ), //visual space
String Col Box( "Value", {"1", ".002", "blah", "yes"} ),
String Col Box( " ", {" ", " ", " "} ), //visual space
String Col Box( "Intelligent Blurb", {"duh", "<0.05 means something", "words", "due to b+d<25"} ),
),
)
),
)
)
);
StringColBox에서 굵은 스타일을 설정할 수 없는 것 같습니다. 대신 TextBox()를 사용해 볼 수 있지만 정렬을 완벽하게 하기는 어렵습니다.
예(29행에서 시작하는 테이블 상자):
...
테이블 박스 (
텍스트 상자 ( "\!N\!tPos\!N\!tNeg" , << 글꼴 스타일 설정 ( "용감한" ) , << 글꼴 크기 설정 ( 13 ) ) ,
//String Col Box( "", {"Pos", "Neg"} ), //정말 대담했으면 좋겠습니다!
번호 열 상자 ( "포스" , { 2225 , 25 } ) , //숫자 주위에 경계선이나 눈금선을 원합니다.
번호 열 상자 ( "네그" , { 12 , 2258 } ) , //숫자 주위에 경계선이나 눈금선을 원합니다.
<< 행 테두리 설정 ( 1 ) ,
<< 열 테두리 설정 ( 1 ) ,
<< 음영 제목 설정 ( 0 )
) ,
...