<?xml version="1.0"?>
<OriginStorage Label="" Display="652"><XFname NodeID="11" Label="Name" DataID="300">kaplanmeier</XFname><xFdescription NodeID="11" Label="Description" DataID="310">&amp;Kaplan-Meier Estimator:Perform a Kaplan-Meier (product-limit) analysis</xFdescription><attachTo NodeID="13" Label="Attach to Origin Object" Combo="None|Auto|Column|Sheet/Layer|Book/Graph" DataID="320" Show="0">1</attachTo><author NodeID="11" Label="Author" DataID="314"></author><AutoDependent NodeID="10" Label="Auto Compile Dependent Files" DataID="451">1</AutoDependent><UsageCtxt NodeID="268435456" Label="Usage Context" DataID="329"><LabTalk NodeID="10" Label="Labtalk" DataID="357">1</LabTalk><WksSel NodeID="10" Label="Worksheet Selection" DataID="350">0.</WksSel><GrObj NodeID="268435456" Label="Graphic Object Events" DataID="330" Use="0"><InitAnchors NodeID="10" Label="Initialization" DataID="339">1.</InitAnchors><Move NodeID="10" Label="Move" DataID="331">1.</Move><Moving NodeID="10" Label="Moving" DataID="332">0.</Moving><Resize NodeID="10" Label="Resize" DataID="333">0.</Resize><Resizing NodeID="10" Label="Resizing" DataID="334">0.</Resizing><Delete NodeID="10" Label="Delete" DataID="335">0.</Delete><Select NodeID="10" Label="Select" DataID="336">0.</Select><Unselect NodeID="10" Label="Unselect" DataID="337">0.</Unselect><BtnClick NodeID="10" Label="Button Click" DataID="338">0.</BtnClick><Rotate NodeID="10" Label="Rotate" DataID="340">0.</Rotate><Rotating NodeID="10" Label="Rotating" DataID="341">0.</Rotating><Skew NodeID="10" Label="Skew" DataID="342">0.</Skew><Skewing NodeID="10" Label="Skewing" DataID="343">0.</Skewing><EditEv NodeID="10" Label="Edit" DataID="344">0.</EditEv><Editing NodeID="10" Label="Editing" DataID="345">0.</Editing><NewSelection NodeID="10" Label="New Selection" DataID="346">0.</NewSelection><DeletePart NodeID="10" Label="Delete Part" DataID="347">0.</DeletePart><Keyboard NodeID="10" Label="Keyboard" DataID="348">0.</Keyboard><ObjType NodeID="13" Label="Type" Combo="Rect|Line" DataID="349">0.</ObjType></GrObj><Theme NodeID="268435456" Label="Theme" DataID="386"><UseInDialog NodeID="10" Label="Support Saving Themes in Dialog" DataID="372">1</UseInDialog><ShowInMenu NodeID="10" Label="Show Themes as Popups in Menu" DataID="352">1</ShowInMenu><SaveInBook NodeID="10" Label="Support Saving to Book" DataID="387">0.</SaveInBook><SaveInSheet NodeID="10" Label="Support Saving to Sheet" DataID="388">0.</SaveInSheet></Theme><mainmenu NodeID="268435456" Label="Menus" DataID="365" Use="1" BranchCombo="None|Main Menus|Context Menus|Both|Context Menus 1|Context Menus 2|Context Menus 3|Context Menus 4"><AddAsTool NodeID="10" Label="Add As Tool" DataID="366">0.</AddAsTool><ClassOp NodeID="10" Label="Class Operation" DataID="367">0.</ClassOp><GetN NodeID="13" Label="Auto GetN Dialog" Combo="None|Simple GetNBox|GetNGraphBox with Preview|GetNImageBox|Wizard|Custom" DataID="371">1.</GetN><CustomDialog NodeID="11" Label="Custom Dialog Function" DataID="395" Show="0"></CustomDialog><DlgFromMenu NodeID="10" Label="Open Dialog from Menu for Option Index" DataID="374">1.</DlgFromMenu><checkMenu NodeID="10" Label="Check Menu" DataID="470">0.</checkMenu></mainmenu><windows NodeID="268435456" Label="Windows" DataID="450" Use="1"><graph NodeID="10" Label="Graph" DataID="368">0</graph><worksheet NodeID="10" Label="Worksheet" DataID="369">1</worksheet><matrix NodeID="10" Label="Matrix" DataID="370">1</matrix><report NodeID="10" Label="Report" DataID="360">0.</report><none NodeID="10" Label="Layout" DataID="359">0.</none><none NodeID="10" Label="None" DataID="361">0.</none></windows></UsageCtxt><outTree NodeID="10" Label="Generate LabTalk Tree upon execution" DataID="373">0</outTree><askOutResultsLog NodeID="10" Label="Add Checkbox to Auto GetN Dialog about Results Log Output" DataID="393">1</askOutResultsLog><outResultsLog NodeID="13" Label="Output to Results Log upon execution" Combo="None|All|Report Tree|First Input|First Output|All Outputs|All Except Trees" DataID="394">2</outResultsLog><customButtons NodeID="11" Label="GetN Dialog Custom Buttons" DataID="391"></customButtons><syntax NodeID="41" Label="Command Line Usage" DataID="305" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="2-18"><![CDATA[1. kaplanmeier irng:=(1,2) censor:=0 
2. kaplanmeier irng:=(1,2,3) censor:=0 hazard:=1 ]]></syntax><vars NodeID="268435456" Label="Variables" Branch="1"><v1 _XFUNCTION_VAR="1" RepeatID="1"><name NodeID="11" Label="Name" DataID="10">irng</name><description NodeID="11" Label="Label" DataID="20" Show="0"></description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">Range</type><valdata NodeID="57" Label="Data" DataID="50"></valdata><comboString NodeID="11" Label="Control" DataID="70">Time Range|Censor Range|Grouping Range (Optional)</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69">D:XXF;I:0x00000010</optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Specify data range for analysis, including time data range, censor data range and grouping range.
Time data range
 Specify time data column
Censor data range
 Specify censor data column
Grouping range
 Specify group data range.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Data range</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">時間データ範囲、打ち切りデータ範囲、グループ範囲を含む分析するデータ範囲を指定します。
時間データ範囲
 時間データ列を指定します。
打ち切りデータ範囲
 打ち切りデータ列を指定します。
グループ範囲
 グループデータ範囲を指定します。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">データ範囲</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Bestimmen des Datenbereichs zur Analyse, einschließlich Zeitdatenbereich, Zensordatenbereich und Gruppierungsbereich.
Zeitdatenbereich
 Bestimmen der Zeitdatenspalte
Zensordatenbereich
 Bestimmen der Zensordatenspalte
Gruppierungsbereich
 Bestimmen des Gruppierungsdatenbereichs</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Datenbereich</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v1><v2 _XFUNCTION_VAR="1" RepeatID="2"><name NodeID="11" Label="Name" DataID="10">censor</name><description NodeID="11" Label="Label" DataID="20" Show="0">Censoring Value(s)</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">vector</type><valdata NodeID="35" Label="Data" DataID="50" _DROP_DOWN_BUTTON_ID="2112|1"></valdata><comboString NodeID="11" Label="Control" DataID="70">|0|1|2|3</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69">T:1</optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Censoring Value(s)</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Specify the censor subject value, that identifies which time values in the observation data set are censored</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Censor subject value</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">打ち切り値</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">観測データセットにある時間がが打ち切られたと識別する打ち切り対象の値を指定します。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">打ち切り対象の値</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Zensierungswert(e)</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Bestimmen des Zensorsubjektwerts, welcher identifiziert welche Zeitwerte im Beobachtungsdatensatz zensiert werden.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Zensorsubjektwert</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v2><v3 _XFUNCTION_VAR="1" RepeatID="3"><name NodeID="11" Label="Name" DataID="10">summary</name><description NodeID="11" Label="Label" DataID="20" Show="0">Event and Censor Values Summary</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">1</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69">G:-Survival Tables</optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Event and Censor Values Summary</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Check box for output the summary of event and censored value result.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Summary of event and censored value</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">イベントと打ち切り値のサマリー</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">イベントと打ち切り値の結果のサマリーを出力するチェックボックス</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">イベントと打ち切り値のサマリー</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Ereignis- und Zensorwertezusammenfassung.</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Auswahlfeld zur Ausgabe der Zusammenfassung der Ergebnisse von Ereignis- und zensierten Werten.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Zusammenfassung von Ereignis- und zensierten Werten</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v3><v4 _XFUNCTION_VAR="1" RepeatID="4"><name NodeID="11" Label="Name" DataID="10">survfunc</name><description NodeID="11" Label="Label" DataID="20" Show="0">Survival Estimates</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">1</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69"></optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Survival Estimates</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Check box for output the survival estimates result.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Survival estimates</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">生存推定量</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">生存推定結果を出力するチェックボックス</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">生存推定量</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Überlebensschätzer</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Auswahlfeld zur Ausgabe der Ergebnisse der Überlebensschätzer.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Überlebensschätzer</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v4><v5 _XFUNCTION_VAR="1" RepeatID="5"><name NodeID="11" Label="Name" DataID="10">quartile</name><description NodeID="11" Label="Label" DataID="20" Show="0">Quartile Estimates</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">0</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69"></optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Quartile Estimates</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Check box for output the quantile estimates result.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Quantile Estimates</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">四分位の推定量</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">四分位の推定量を出力するチェックボックス</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">四分位の推定量</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Quartilschätzer</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Auswahlfeld zur Ausgabe der Ergebnisse der Quartilschätzer.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Quartilschätzer</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v5><v6 _XFUNCTION_VAR="1" RepeatID="6"><name NodeID="11" Label="Name" DataID="10">mean</name><description NodeID="11" Label="Label" DataID="20" Show="0">Mean Estimate</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">0</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69"></optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Mean Estimate</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Check box for the mean estimates result.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Mean estimates</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">平均の推定量</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">平均の推定量を出力するチェックボックス</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">平均の推定量</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Mittelwertschätzer</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Auswahlfeld für die Ergebnisse der Mittelwertschätzer.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Mittelwertschätzer</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v6><v7 _XFUNCTION_VAR="1" RepeatID="7"><name NodeID="11" Label="Name" DataID="10">conf</name><description NodeID="11" Label="Label" DataID="20" Show="0">Confidence Level in % for Quartile/Mean Estimate</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">double</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">95</valdata><comboString NodeID="11" Label="Control" DataID="70"></comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69">G:</optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Confidence Level in % for Quartile/Mean Estimate</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Text box to enter a confidence level to be used when computing errors for the survival function and upper and lower limits of the quartile estimates.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Confidence level</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">四分位/平均の推定量の%での信頼水準</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">生存関数に対する計算誤差および四分位数の上側および下側限界を推定するときに使用される信頼水準を入力するテキストボックス</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">信頼水準</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Konfidenzniveau in % für Quartil-/Mittelwertschätzer</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Textfeld zur Eingabe eines Konfidenzniveaus, das zur Berechung des Fehlers der Überlebensfunktion und für die oberen und unteren Grenzen der Quartilschätzer benutzt werden soll.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Konfidenzlevel</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v7><v8 _XFUNCTION_VAR="1" RepeatID="8"><name NodeID="11" Label="Name" DataID="10">sf</name><description NodeID="11" Label="Label" DataID="20" Show="0">Survival</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">1</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69">G:+Survival Plots</optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Survival</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8"><![CDATA[Check box for output survival curve.
]]></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Survival Plots</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">生存グラフ</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932"><![CDATA[生存曲線を出力するためのチェックボックス
]]></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">生存グラフ</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Überleben</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252"><![CDATA[Auswahlfeld zur Ausgabe der Überlebenskurve.
]]></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Überlebensdiagramm</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v8><v9 _XFUNCTION_VAR="1" RepeatID="9"><name NodeID="11" Label="Name" DataID="10">sfci</name><description NodeID="11" Label="Label" DataID="20" Show="0">Add confidence intervals</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">0</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69"></optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Add confidence intervals</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Add confidence intervals to the survival curve.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Add confidence intervals to the survival plot</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">信頼区間を追加します。</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">生存グラフに信頼区間を追加します。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">生存グラフに信頼区間を追加します。</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Konfidenzintervalle hinzufügen</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Konfidenzintervalle zur Überlebenskurve hinzufügen.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Konfidenzintervalle zur Überlebensdiagramm hinzufügen.</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v9><v10 _XFUNCTION_VAR="1" RepeatID="10"><name NodeID="11" Label="Name" DataID="10">omsf</name><description NodeID="11" Label="Label" DataID="20" Show="0">One Minus Survival</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">0</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69"></optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">One Minus Survival</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Check box for output of one minus survival curve, i.e. the cumulative distribution curve.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">One minus survival plots</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">One Minus生存グラフ</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">累積分布曲線のようなone minus生存グラフを出力するチェックボックス</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">One minus生存グラフ</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">1 - Überlebensfunktion</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Auswahlfeld zur Ausgabe einer Kurve 1 - Überlebensfunktion, z.B. die kumulative Verteilungskurve.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">1 - Überlebensdiagramm</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v10><v11 _XFUNCTION_VAR="1" RepeatID="11"><name NodeID="11" Label="Name" DataID="10">hazard</name><description NodeID="11" Label="Label" DataID="20" Show="0">Hazard</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">0</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69"></optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Hazard</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Check box for output of the hazard curve.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Hazard plot</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">ハザードグラフ</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">ハザード曲線の出力のチェックボックス</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">ハザードグラフ</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Hazard</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Auswahlfeld zur Ausgabe der Hazardkurve</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Hazarddiagramm</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v11><v12 _XFUNCTION_VAR="1" RepeatID="12"><name NodeID="11" Label="Name" DataID="10">lsf</name><description NodeID="11" Label="Label" DataID="20" Show="0">Log Survival</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">0</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69"></optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Log Survival</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Check box for output of the log survival curve.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Log survival plot</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">対数生存グラフ</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">対数生存曲線の出力のチェックボックス</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">対数生存グラフ</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Log Überlebenskurve</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Auswahlfeld zur Ausgabe der Log Überlebenskurve.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Log Überlebensdiagramm</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v12><v13 _XFUNCTION_VAR="1" RepeatID="13"><name NodeID="11" Label="Name" DataID="10">plotinone</name><description NodeID="11" Label="Label" DataID="20" Show="0">Plot all survival curves in one graph</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">1</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69">G:</optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Plot all survival curves in one graph</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Check to plot all the survival curves in one graph window</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Plot all the survival curves in one graph.</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">1つのグラフにすべての生存曲線をプロットします。</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">1つのグラフウィンドウにすべての生存曲線をプロットするにはチェックを付けます。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">1つのグラフにすべての生存曲線をプロットします。</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Zeichne alle Überlebenskurven in einem Diagramm</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Auswählen, um alle Überlebenskurven in einem Diagrammfenster zu zeichnen</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Zeichne alle Überlebenskurven in einem Diagramm</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v13><v14 _XFUNCTION_VAR="1" RepeatID="14"><name NodeID="11" Label="Name" DataID="10">logrank</name><description NodeID="11" Label="Label" DataID="20" Show="0">Log Rank</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">0</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69">G:+Test Equality of SA Functions</optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Log Rank</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Use the Log Rank method to test the equality of the survival distributions for different groups.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">One method to test equality of survival functions</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">ロングランク法</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">ロングランク法を使って、異なるグループの生存分布が等しいかどうかを検定します。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">生存関数の同等性を検定する1つの方法です。</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Log-Rang</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Verwenden der Log-Rang-Methode zum Testen der Gleichheit der Überlebensverteilung für verschiedene Gruppen.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Eine Methode zum Testen der Gleichheit von Überlebensfunktionen</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v14><v15 _XFUNCTION_VAR="1" RepeatID="15"><name NodeID="11" Label="Name" DataID="10">breslow</name><description NodeID="11" Label="Label" DataID="20" Show="0">Breslow</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">0</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69"></optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Breslow</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Use the Breslow method to test the equality of the survival distributions for different groups.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">One method to test equality of survival functions</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">Breslow法</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">Breslow法を使って、異なるグループの生存分布が等しいかどうかを検定します。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">生存関数の同等性を検定する1つの方法です。</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Breslow</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Verwenden der Breslow-Methode zum Testen der Gleichheit der Überlebensverteilung für verschiedene Gruppen.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Eine Methode zum Testen der Gleichheit von Überlebensfunktionen</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v15><v16 _XFUNCTION_VAR="1" RepeatID="16"><name NodeID="11" Label="Name" DataID="10">tarone</name><description NodeID="11" Label="Label" DataID="20" Show="0">Tarone-Ware</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">0.</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">int</type><valdata NodeID="13" Label="Data" DataID="50" Combo="" Enable="1">0</valdata><comboString NodeID="11" Label="Control" DataID="70">0|1</comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69">G:</optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Tarone-Ware</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Use the Tarone-Ware method to test the equality of the survival distributions for different groups.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">One method to test equality of survival functions</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">Tarone-Ware法</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">Tarone-Ware法を使って、異なるグループの生存分布が等しいかどうかを検定します。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">生存関数の同等性を検定する1つの方法です。</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Tarone-Ware</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Verwenden der Tarone-Ware-Methode zum Testen der Gleichheit der Überlebensverteilung für verschiedene Gruppen.</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Eine Methode zum Testen der Gleichheit von Überlebensfunktionen</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v16><v17 _XFUNCTION_VAR="1" RepeatID="17"><name NodeID="11" Label="Name" DataID="10">rd</name><description NodeID="11" Label="Label" DataID="20" Show="0">Survival Functions</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">1</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">ReportData</type><valdata NodeID="81" Label="Data" DataID="50" _DROP_DOWN_BUTTON_ID="2112|0">[&lt;input&gt;]&lt;new&gt;</valdata><comboString NodeID="11" Label="Control" DataID="70"></comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69">G:-Outputs;U:N;P:0</optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Survival Functions</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Specify the survival function data destination</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Survival function destination</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">生存関数</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">生存関数のデータの出力先を指定します。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">生存関数の出力先</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Überlebensfunktionen</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Bestimmen des Ziels der Überlebensfunktionsdaten</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Überlebensfunktionsziel</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v17><v18 _XFUNCTION_VAR="1" RepeatID="18"><name NodeID="11" Label="Name" DataID="10">rt</name><description NodeID="11" Label="Label" DataID="20" Show="0">Output Results</description><io NodeID="13" Label="Input/Output" Combo="Input|Output|Input/Output" DataID="30">1</io><type NodeID="11" Label="Data Type" Combo="double|string|int|vector|vector&lt;string&gt;|vector&lt;complex&gt;|Range|XYRange|XYRangeComplex|XYZRange|matrix|ButtonInfo|LineInfo|TextInfo|EventInfo|MarkerInfo|RectInfo|Column|MatrixObject|Image|DataPlot|Page|GraphPage|WorksheetPage|MatrixPage|GraphLayer|Worksheet|MatrixLayer|TreeNode|FileLink|ReportTree|ReportData|GraphPageBase|Layer" DataID="40">ReportTree</type><valdata NodeID="81" Label="Data" DataID="50" _DROP_DOWN_BUTTON_ID="2112|0">[&lt;input&gt;]&lt;new&gt;</valdata><comboString NodeID="11" Label="Control" DataID="70"></comboString><context NodeID="268435456" Label="Context" DataID="71"></context><optionString NodeID="11" Label="Option String" DataID="69">G:;U:N;N:sheet:=KaplanMeier1;P:0;O:A</optionString><suggestedValues NodeID="11" Label="Suggested Values" DataID="405"></suggestedValues><themeID NodeID="14" Label="Theme ID" DataID="35">0.</themeID><help NodeID="268435456" Label="English Help" DataID="410" RepeatID="256"><description NodeID="11" Label="Display Name" DataID="408">Output Results</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8">Specify the report worksheet destination</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3">Report worksheet destination</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407"></comboDescription></help><helpj NodeID="268435456" Label="Japanese Help" DataID="410" RepeatID="512"><description NodeID="11" Label="Display Name" DataID="408" CdPg="932">結果の出力</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="932">レポートワークシートの出力先を指定します。</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="932">レポートワークシートの出力先</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="932"></comboDescription></helpj><helpg NodeID="268435456" Label="German Help" DataID="410" RepeatID="768"><description NodeID="11" Label="Display Name" DataID="408" CdPg="1252">Ergebnisausgabe</description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="1252">Bestimmen des Ziels des Berichtsdatenblatts</remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="1252">Berichtsdatenblattziel</hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="1252"></comboDescription></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="410" RepeatID="1024"><description NodeID="11" Label="Display Name" DataID="408" CdPg="936"></description><remark NodeID="41" Label="Description" DataID="409" RowHeightRange="3-8" CdPg="936"></remark><hint NodeID="41" Label="Auto Complete Hint" DataID="406" RowHeightRange="1-3" CdPg="936"></hint><comboDescription NodeID="47" Label="Option Explanations" DataID="407" CdPg="936"></comboDescription></helpc></v18></vars><modificationLog NodeID="41" Label="Modification Log" DataID="438" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="2-15">Larry 2006-5-22 Write the description and algorithm section, and some usage command.
Edited 2006-6-13. Fay
5/30/07 Fay. Complete the rest of the document.
6/01/07 Fay. Modify the Command Line Usage part of the document.
7/10/07. Larry. Review Done, modify some formats.
7/30/07. Fay. Review document and modify the plot in Descriptions.
8/15/07. Fay. Review and modify Command Line Usage.</modificationLog><codes NodeID="268435456" Label="Code" DataID="324"><rettype NodeID="11" Label="Return Type" Combo="void|int|double|string|vector" DataID="41">void</rettype><header NodeID="45" Label="Header" DataID="323" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="3-15"><![CDATA[/*------------------------------------------------------------------------------*
*	Modification Log:															*
*	Nicole 07/05/2007 v8.0655 REMOVE_SPACE_FOR_LOCATION_STRING					*
*	Echo 7/25/07 QA70-7191-P7 v8.0667 SA_COMP_NOT_SUPPORT_1_GROUP				*
*	Jasmine 08/14/07 QA80-10207 REPORT_SHEET_CHECK_CONFLICT						*
*	Max 3/7/08 LOCALIZE_PREDEFINED_STRING										*
*	Max 3/7/08 SHOULD_PASS_WHOLE_STRING_OF_LPCSZRDLABEL_FOR_LOCALIZATION		*
*	Max 3/19/08 SHOULD_NOT_RESET_VARIABLE_VALUE_IN_LT							*
*	Folger 02/20/09 OUTPUT_NODES_SHOULD_BE_DISABLED_IN_CAHNGE_PARAM				*
*	Kyle 03/02/2009 SHOULD_NOT_CHANGE_OUTPUT_ON_GUI_ON_CHANGE_PARAMETERS		*
*   Iris 7/13/2009 QA80-8440 ADD_PLOT_WEIBULL_XF								*
*	Folger 08/26/2010 ORG-920-P2 KAPLAN_MEIER_BETTER_HANDLING_OF_OUTPUT_PLOT_AND_REPORT_DATA
*-------------------------------------------------------------------------------*/
//put additional include files here
#include <GetNBox.h>
#include <ReportTree.h>
#include <report_utils.h>
#include <stats_utils.h>
#include <event_utils.h>
#include <control.h>
#include <o8dlg.h>
//put your own support static functions here

#define KM_REPORT_TABLE 100    //Eric  2006/4/6
#define SA_QUAN_ESTM	3
#define	SUPPRESS_ALL_OUTPUT_MSG "All output have been suppressed. Please select at least one statistical display!"

#define IDST_SA_TIME          0x00000010
#define IDST_SA_KM_SE         0x00000012
#define IDST_SA_QE            0x10000001
#define IDST_SA_MEAN_EST      0x10020001
#define IDST_SA_COMP_TE       0x11000000
#define IDST_SA_COMP_LOGRANK  0x11000005
#define IDST_SA_COMP_BRESLOW  0x11000010
#define IDST_SA_COMP_TW       0x11000015

enum
{
	WARN_NO_GROUP = XF_LOCAL_ERR_BEGIN,
	ERR_TOO_FEW_GROUP,		
};



static void _get_km_estimates(SAEstim stSurvivEstim, vector<string>& vKMEstim)
{
	vKMEstim.SetSize(6);
	vKMEstim[0] = ftoa(stSurvivEstim.Time);
	vKMEstim[1] = (1 == stSurvivEstim.Status) ? "+" : " ";
	vKMEstim[2] = ftoa(stSurvivEstim.Surv);
	vKMEstim[3] = ftoa(stSurvivEstim.SD);
	vKMEstim[4] = ftoa(stSurvivEstim.Events);
	vKMEstim[5] = ftoa(stSurvivEstim.Remain);
	
}

static void _get_quantile_estimate(double dPerc, SAQuantEst stSAQuantEstim, vector& vQuanEstims)
{
	vQuanEstims.SetSize(4);
	vQuanEstims[0] = dPerc;
	vQuanEstims[1] = stSAQuantEstim.Perc;
	vQuanEstims[2] = stSAQuantEstim.LCL;
	vQuanEstims[3] = stSAQuantEstim.UCL;
}


static void _get_comp_results(SFComp stSFComp, vector& vCompRes)
{
	vCompRes.SetSize(3);
	vCompRes[0] = stSFComp.ChiSq ;
	vCompRes[1] = stSFComp.DOF ;
	vCompRes[2] = stSFComp.Prob ;
}

/// Iris 7/13/2009 QA80-8440 ADD_PLOT_WEIBULL_XF, moved to report_utils
/*
static void _get_surv_plot_data(const int nSurvivEstim, const SAEstim *pSurvivEstim, vector& vX, vector& vY, vector& vErrors)
{
	vX.SetSize(nSurvivEstim+1);
	vY.SetSize(nSurvivEstim+1);
	vErrors.SetSize(nSurvivEstim+1);
	vX[0] = 0;
	vY[0] = 1;
	//vErrors[0] = 1;
	vErrors[0] = 0;
	
	for (int ii = 0; ii < nSurvivEstim; ii++)
	{
		vX[ii+1] = pSurvivEstim[ii].Time;
		vY[ii+1] = pSurvivEstim[ii].Surv;
		vErrors[ii+1] = pSurvivEstim[ii].SD;
		
	}
}
*/
///end ADD_PLOT_WEIBULL_XF

void km_add_surv_estimate(ReportTable& outRT, const int nSurvivEstim, const SAEstim *pSurvivEstim)
{	
	//Kaplan-Meier Estimates
	ReportTable rtKaplan = outRT.CreateTable("KaplanMeier", _L("Kaplan-Meier Survival Estimates"), IDST_SA_KM_SE);
	vector<string> vstrKaplanLabels(6), vstrKMTagName;
	vstrKaplanLabels[0] = _L("Time");
	vstrKaplanLabels[1] = _L("Status");
	vstrKaplanLabels[2] = _L("Cumulative Survival");
	vstrKaplanLabels[3] = _L("Standard Error");
	vstrKaplanLabels[4] = _L("Cumulative Event");
	vstrKaplanLabels[5] = _L("Number Remaining");
	
	string strKMTagName = SA_KM_ESTIM;
	strKMTagName.GetTokens(vstrKMTagName, '|');
	
	int ii;
	vector<string> vSurvivEstims;
	vector vX,vY, vErrors;
	vX.SetSize(nSurvivEstim+1);
	vY.SetSize(nSurvivEstim+1);
	vErrors.SetSize(nSurvivEstim+1);
	vX[0] = 0;
	vY[0] = 1;
	vErrors[0] = 1;
	
	for (ii = 0; ii < nSurvivEstim; ii++)
	{
		_get_km_estimates(pSurvivEstim[ii], vSurvivEstims);
		string strRow = "T"+ftoa(ii+1);
		/// Nicole 07/05/2007 v8.0655 REMOVE_SPACE_FOR_LOCATION_STRING
		//rtKaplan.AddRow(_L(""), vSurvivEstims, _L(" "), vstrKaplanLabels, NULL, make_one_set_ID(IDST_SA_KM_SE, ii));	
		rtKaplan.AddRow(strRow, vSurvivEstims, " ", vstrKaplanLabels, vstrKMTagName, make_one_set_ID(IDST_SA_KM_SE, ii));	
		/// End REMOVE_SPACE_LOCATION_STRING
		///Sophy 3/30/2009 QA80-13352 SUPPORT_SPECIFY_COLUMN_DESIGNATIONS_IN_REPORT_TABLES
		TreeNode trRow = rtKaplan.GetNode(strRow);
		if ( trRow )
		{
			tree_set_attribute_to_all_nodes(trRow, STR_COL_DESIGNATION_ATTRIB, (string)OKDATAOBJ_DESIGNATION_Y);
			if ( trRow.SE )
				trRow.SE.SetAttribute(STR_COL_DESIGNATION_ATTRIB, OKDATAOBJ_DESIGNATION_ERROR);
		}
		///end SUPPORT_SPECIFY_COLUMN_DESIGNATIONS_IN_REPORT_TABLES
	}
	
	// add footnode
	TreeNode trFooter = tree_check_get_node(rtKaplan, "Footer", IDE_FOOTNOTE_BEGIN, TREE_Footnote, "1");
	trFooter.strVal = _L("Observation with status as + are censored ones");
		
}

void km_add_quartile_estimates(ReportTable& outRT, const double dConfLevel, const SAQuantEst *pSAQuantEstim)
{
	ReportTable rtQuan = outRT.CreateTable("Quan", _L("Quartile Estimates"), IDST_SA_QE);
	vector<string> vstrQuanLabels(4), vstrTagName;
	vstrQuanLabels[0] = _L("Percent");
	vstrQuanLabels[1] = _L("Estimate");
	vstrQuanLabels[2] = ftoa(dConfLevel) + "% LCL";
	vstrQuanLabels[3] = ftoa(dConfLevel) + "% UCL";
	
	string strTagName = SA_KM_QUAN;
	strTagName.GetTokens(vstrTagName, '|');
	
	vector vQuanEstims, vPercent(SA_QUAN_ESTM);
	vPercent[0]= 25.0;
	vPercent[1]= 50.0;
	vPercent[2]= 75.0;
	for (int ii = 0; ii < SA_QUAN_ESTM; ii++)
	{
		_get_quantile_estimate(vPercent[ii], pSAQuantEstim[ii], vQuanEstims);
		string strRow = "Quan" + ftoa(ii+1);
		/// Nicole 07/05/2007 v8.0655 REMOVE_SPACE_FOR_LOCATION_STRING
		//rtQuan.AddRow(_L(""), vQuanEstims, _L(" "), vstrQuanLabels, NULL, make_one_set_ID(IDST_SA_QE, ii));		
		rtQuan.AddRow(strRow, vQuanEstims, " ", vstrQuanLabels, vstrTagName, make_one_set_ID(IDST_SA_QE, ii));		
		/// End REMOVE_SPACE_LOCATION_STRING
		///Sophy 3/30/2009 QA80-13352 SUPPORT_SPECIFY_COLUMN_DESIGNATIONS_IN_REPORT_TABLES
		TreeNode trRow = rtQuan.GetNode(strRow);
		if ( trRow )
			tree_set_attribute_to_all_nodes(trRow, STR_COL_DESIGNATION_ATTRIB, (string)OKDATAOBJ_DESIGNATION_Y);
		///end SUPPORT_SPECIFY_COLUMN_DESIGNATIONS_IN_REPORT_TABLES
	}
	
	
}

static void _get_mean_estim(const SAMeanEst& stSAMeanEst, vector& vMeanEstim)
{
	vMeanEstim.SetSize(4);
	vMeanEstim[0] = stSAMeanEst.Estimate;
	vMeanEstim[1] = stSAMeanEst.SE;
	vMeanEstim[2] = stSAMeanEst.LCL;
	vMeanEstim[3] = stSAMeanEst.UCL;
	
}

void km_add_mean_estim(ReportTable& outRT, const double dConfLevel, const SAMeanEst& stSAMeanEst)
{
	ReportTable rtMean = outRT.CreateTable("Mean", _L("Mean Estimate"), IDST_SA_MEAN_EST);
	vector<string> vstrMeanLabels(4);
	vstrMeanLabels[0] = _L("Estimate");
	vstrMeanLabels[1] = _L("Std.Error");
	vstrMeanLabels[2] = ftoa(dConfLevel) + "% LCL";
	vstrMeanLabels[3] = ftoa(dConfLevel) + "% UCL";
	
	vector<string> vstrTagName;
	string strTagName = SA_KM_MEAN;
	strTagName.GetTokens(vstrTagName, '|');
	
	vector vMeanEstim;
	_get_mean_estim(stSAMeanEst, vMeanEstim);
	/// Nicole 07/05/2007 v8.0655 REMOVE_SPACE_FOR_LOCATION_STRING
	//rtMean.AddRow(_L(""), vMeanEstim, _L(" "), vstrMeanLabels, NULL, IDST_SA_MEAN_EST + 1);		
	rtMean.AddRow("Mean", vMeanEstim, " ", vstrMeanLabels, vstrTagName, IDST_SA_MEAN_EST + 1);		
	/// End REMOVE_SPACE_LOCATION_STRING
	///Sophy 3/30/2009 QA80-13352 SUPPORT_SPECIFY_COLUMN_DESIGNATIONS_IN_REPORT_TABLES
	TreeNode trRow = rtMean.GetNode("Mean");
	if ( trRow )
	{
		tree_set_attribute_to_all_nodes(trRow, STR_COL_DESIGNATION_ATTRIB, (string)OKDATAOBJ_DESIGNATION_Y);
		if ( trRow.SE )
			trRow.SE.SetAttribute(STR_COL_DESIGNATION_ATTRIB, OKDATAOBJ_DESIGNATION_ERROR);
	}
	///end SUPPORT_SPECIFY_COLUMN_DESIGNATIONS_IN_REPORT_TABLES
	if (stSAMeanEst.Limited)
	{
		TreeNode trFooter = tree_check_get_node(rtMean, "Footer", IDE_FOOTNOTE_BEGIN, TREE_Footnote, "1"); 
		trFooter.strVal = _L("Estimation is underestimated because the largest observation is censored");		
		
	}
	
}


void km_add_overall_comp_report_tree(ReportTree& outRT, int nLogRank, int nBreslow, int nTarone, SFComp *pSFComp = NULL)
{
		//////////////////////////////////////////////////////////////////
	// Test Equality of SA Functions
	//////////////////////////////////////////////////////////////////
	ReportTable rtComp = outRT.CreateTable("Comp", _L("Test of Equality over Groups"), IDST_SA_COMP_TE);	
	vector vCompRes;
	vector<string> vstrCompLabels(3);
	vstrCompLabels[0] = _L("Chi-Square");
	vstrCompLabels[1] = _L("df");
	vstrCompLabels[2] = _L("Prob>Chi-Square");
	
	vector<string> vstrTagName;
	string strTagName = TEST_STATS_TABLE;
	strTagName.GetTokens(vstrTagName, '|');
	
	if (nLogRank)
	{
		_get_comp_results(pSFComp[0], vCompRes);
		rtComp.AddRow(_L("LogRank"), vCompRes, _L("Log Rank"), vstrCompLabels, vstrTagName, IDST_SA_COMP_LOGRANK);
	}
	if (nBreslow)
	{
		_get_comp_results(pSFComp[1], vCompRes);
		rtComp.AddRow(_L("Breslow"), vCompRes, _L("Breslow"), vstrCompLabels, vstrTagName, IDST_SA_COMP_BRESLOW);
	}
	if (nTarone)
	{
		_get_comp_results(pSFComp[2], vCompRes);
		rtComp.AddRow(_L("Tarone"), vCompRes, _L("Tarone-Ware"), vstrCompLabels, vstrTagName, IDST_SA_COMP_TW);
	}
			
	
}

static bool _at_least_1_output(const TreeNode& trGetN)
{
	if (trGetN.summary.nVal || trGetN.survfunc.nVal || trGetN.quartile.nVal || trGetN.sf.nVal || trGetN.omsf.nVal || trGetN.lsf.nVal)
		return true;
	else
		return false;
}

static int _get_comp_num(const TreeNode& trGetN)
{
	return trGetN.logrank.nVal + trGetN.breslow.nVal + trGetN.tarone.nVal;
}

static int km_check_input(TreeNode& trGetN)
{
	int nErr = CER_NO_ERROR;
	
	//If data is selected in Group Range
	TreeNode trRange = trGetN.irng;
	
	/// YuI 08/19/09 QA70-14173 BRANCHED_RANGES_MAY_BE_INPROPERLY_INITIALIZED_IF_EMPTY_STRING
	string strVal = trRange.strVal;
	if( !sa_check_range_string(strVal) )
		return CER_NOT_SA_DATA;
	/// end BRANCHED_RANGES_MAY_BE_INPROPERLY_INITIALIZED_IF_EMPTY_STRING	
	
	Range rData;
	okxf_resolve_tree_construct_range(&trRange, &rData);
	bool bNoGroup = true;
	if (rData)
	{
		vector vTime, vCensor, vGroup, vNumInGrp;
		vector<string> vstrGrpLab;
		int nRet = km_get_data(rData, vTime, vCensor, vGroup, vNumInGrp, vstrGrpLab);
		if (CER_NO_ERROR != nRet)
			return nRet;
		///Echo 7/25/07 QA70-7191-P7 v8.0667 SA_COMP_NOT_SUPPORT_1_GROUP
		double dMin, dMax;
		vGroup.GetMinMax(dMin, dMax);
		bNoGroup = (dMin == dMax) ? true : false;
	}
		///end SA_COMP_NOT_SUPPORT_1_GROUP
	
	//Without Group Range, Plot in one check box can not be selected
	//if( bNoGroup && trGetN.plotinone.nVal && CER_NO_ERROR == nErr)
	//{
		//nErr = CER_KM_NO_GROUP_PLOT;
	//}
		
	//Without Group Range, check boxes in Test Equality branch can not be selected
	if( bNoGroup && 0 != _get_comp_num(trGetN)  && CER_NO_ERROR == nErr)
	{
		nErr = CER_KM_NO_GROUP_EQUALITY;
	}
	if ( !_at_least_1_output(trGetN)  && CER_NO_ERROR == nErr)
	{
		nErr = CER_SUPPRESS_ALL_OUTPUT;
	}
	
	if (nErr == CER_NO_ERROR)
		nErr = check_valid_censoring(trGetN);
		
	if (!check_conf_level(trGetN.conf) && CER_NO_ERROR == nErr)
	{
		nErr = CER_INVALID_CONF_LEV;
	}
		
	//Plot in one check box and Confidence interval check box can not be selected together
	if( trGetN.plotinone.nVal && trGetN.sfci.nVal  && CER_NO_ERROR == nErr)
	{
		nErr = CER_SURV_PLOT;
	}
	
	return nErr;
		
}]]></header><code NodeID="45" Label="Expression" DataID="325" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="5-20"><![CDATA[
vector vTime, vCensor, vGroup, vNumInGrp;
vector<string> vstrGrpLab;
int nRet = km_get_data(irng, vTime, vCensor, vGroup, vNumInGrp, vstrGrpLab);
if (CER_COL_NUM_NOT_ONE_EX == nRet)
	XF_THROW_EX(CER_COL_NUM_NOT_ONE_EX, _L("Grouping Range"));
if (CER_NO_ERROR != nRet)
	XF_THROW(nRet);

int nGroup = vNumInGrp.GetSize();

LPCSTR lpsczLabel = _L("Kaplan-Meier Estimates");
report_tree_create(rt, lpsczLabel, "irng");	
sa_add_note_time_ls_0(rt, vTime);	

vNumInGrp.InsertAt(0,0);
int nBegin = 0, nEnd;

int nPlot = sf + omsf + hazard + lsf;
	
for (int ii = 0; ii < nGroup; ii++)	
{
	vector vSubTime, vSubCensor;
	nBegin = nBegin + (int)vNumInGrp[ii];
	nEnd = nBegin + (int)vNumInGrp[ii + 1];
	vTime.GetSubVector(vSubTime, nBegin, nEnd - 1);
	vCensor.GetSubVector(vSubCensor, nBegin, nEnd - 1);

	int nSizeSAEstm = vSubTime.GetSize();
	SAEstim* pSurvivEstim = (SAEstim*) malloc (nSizeSAEstm * sizeof(SAEstim));
	SAQuantEst pSAQuantEstim[SA_QUAN_ESTM];
	SASummary stSASumStats;
	SAMeanEst stSAMeanEst;	
	
	double dConfLevel = conf / 100;
	nRet = 	ocmath_kaplan_meier_surviv_fn(vSubTime, vSubTime.GetSize(), vSubCensor, vSubCensor.GetSize(), censor, censor.GetSize(), 
										dConfLevel, pSurvivEstim, nSizeSAEstm,pSAQuantEstim,SA_QUAN_ESTM, &stSASumStats, &stSAMeanEst);	
	
    if(summary)
    {
       if (nGroup > 1)
           rt_add_sa_summary(rt, stSASumStats, censor, vstrGrpLab[ii], ii);
       else
	       rt_add_sa_summary(rt, stSASumStats, censor);
    }

	if (survfunc || quartile)
	{
		ReportTable rtSA;
		string strSubsetName = "SA";
		string strGroup = "";
		int nID = IDST_SA_TIME;
		if (nGroup > 1)
		{
			strSubsetName += ftoa(ii+1);
			nID += ii;
			strGroup = vstrGrpLab[ii];
		}
		string strLongName;
		strLongName.Format(_L("Survival Analysis of Time (%s)"), strGroup);
		rtSA = rt.CreateTable(strSubsetName, strLongName, nID);	
		
		if (survfunc)
			km_add_surv_estimate(rtSA, nSizeSAEstm, pSurvivEstim);
		if (quartile)
			km_add_quartile_estimates(rtSA, conf, pSAQuantEstim);
		if (mean)
			km_add_mean_estim(rtSA, conf, stSAMeanEst);

	}
    ///Kyle 03/02/2009 SHOULD_NOT_CHANGE_OUTPUT_ON_GUI_ON_CHANGE_PARAMETERS
 	//if (nPlot != 0)   
 	if (nPlot != 0 && rd)   
 	///End SHOULD_NOT_CHANGE_OUTPUT_ON_GUI_ON_CHANGE_PARAMETERS
 	{
		rd.ID = IDST_RESULT_CURVES;	
 		vector vX, vY, vErrors;
 		/// Iris 7/13/2009 QA80-8440 ADD_PLOT_WEIBULL_XF
 		//_get_surv_plot_data(nSizeSAEstm, pSurvivEstim, vX, vY, vErrors);
 		get_surv_plot_data(nSizeSAEstm, pSurvivEstim, vX, vY, vErrors);
 		///end ADD_PLOT_WEIBULL_XF
		surv_update_report_data(rd, conf/100, vX, vY, vErrors,ii, vstrGrpLab, sf, hazard, sfci, omsf, lsf);
 	}

	free(pSurvivEstim);
}
if(nPlot != 0)
{
   	survival_rd_plotting(rd, vstrGrpLab, rt, sf, hazard, sfci, omsf, lsf, plotinone, false);
}
	
if (logrank || breslow || tarone )									
{
	if (0 == vGroup.GetSize())
	{
		XF_THROW(WARN_NO_GROUP);
	}
	if (nGroup < 2)
	{
		XF_THROW(ERR_TOO_FEW_GROUP);
	}
	
	SFComp pSFComp[3], stLogRank, stBreslow, stTarone; 
	nRet = 	ocmath_surviv_fn_comp(vTime, vTime.GetSize(), vCensor, vCensor.GetSize(), vGroup, vGroup.GetSize(), censor, censor.GetSize(), &stLogRank, 0);								;	
	if (nRet != STATS_NO_ERROR)
		XF_THROW_EX(CER_UNKNOWN_ERROR_EX, nRet);
	pSFComp[0] = stLogRank;
	
	nRet = 	ocmath_surviv_fn_comp(vTime, vTime.GetSize(), vCensor, vCensor.GetSize(), vGroup, vGroup.GetSize(), censor, censor.GetSize(), &stBreslow, SA_SFCOMP_BRESLOW);								;
	if (nRet != STATS_NO_ERROR)
		XF_THROW_EX(CER_UNKNOWN_ERROR_EX, nRet);
	pSFComp[1] = stBreslow;
	
	nRet = 	ocmath_surviv_fn_comp(vTime, vTime.GetSize(), vCensor, vCensor.GetSize(), vGroup, vGroup.GetSize(), censor, censor.GetSize(), &stTarone, SA_SFCOMP_TARONEWARE);								;
	if (nRet != STATS_NO_ERROR)
		XF_THROW_EX(CER_UNKNOWN_ERROR_EX, nRet);
	pSFComp[2] = stTarone;
	
	km_add_overall_comp_report_tree(rt,logrank, breslow, tarone, pSFComp);
	
}	]]></code><event1 NodeID="45" Label="Event1" DataID="327" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="5-20" Show="0"><![CDATA[
TreeNode trRange = trGetN.irng;
TreeNode trCensor = trGetN.censor;
/// YuI 08/19/09 QA70-14173 BRANCHED_RANGES_MAY_BE_INPROPERLY_INITIALIZED_IF_EMPTY_STRING
// should not set censor list until we know that input data is good
//	if (trRange && trCensor)
//		set_censor_list(trRange, trCensor);
/// end BRANCHED_RANGES_MAY_BE_INPROPERLY_INITIALIZED_IF_EMPTY_STRING

trGetN.irng.SetAttribute(STR_ATTRIB_BRANCH, GETNBRANCH_OPEN);
trGetN.conf.Enable = trGetN.quartile.nVal || trGetN.mean.nVal;
	
///Echo 9/22/06 The setting is not reasonable when play with theme. So error messages are used to treat such case insteadly
/*
if (nEventID >= 0)
{
	//Branch "Test Equality of SA Functions" only avaiable if data is selected in Group Range
	Range rData;
	okxf_resolve_tree_construct_range(&trRange, &rData);
	bool bGroup;
	if( rData )
	{
		vector vGroup;
		rData.GetData(vGroup, 2);
		//Test Equality branch only enable if Group Range is set
		bGroup = trGetN.trComp.Enable = (vGroup.GetSize() == 0) ? false : true;	
	}
		
	if ( bGroup )//if Group Range is set
	{
		//Plot in one check box only enables if one of plots type is selected
		trGetN.plotinone.Enable = bPlot;
			
	}else
	{
		//if no Group Range, Plot in one check box is diabled
		trGetN.plotinone.nVal = trGetN.plotinone.Enable = false;
	}
}
*/

//Plot in one check box and Confidence interval check box can not be selected together
//trGetN.sfci.Enable = 1 - trGetN.plotinone.nVal;

///------ Folger 08/26/2010 ORG-920-P2 KAPLAN_MEIER_BETTER_HANDLING_OF_OUTPUT_PLOT_AND_REPORT_DATA
/*
///------ Folger 02/20/09 OUTPUT_NODES_SHOULD_BE_DISABLED_IN_CAHNGE_PARAM
//bool bEnabled = (0 != get_plot_number(trGetN));
int		nEnabled = ENABLE;
bool	bIsChangeParam = trGetN.AutoUpdate.GetAttribute(STR_ENABLE_ATTRIB, nEnabled) && nEnabled == DISABLE;
bool	bEnabled = !bIsChangeParam && (0 != get_plot_number(trGetN));
///------ End OUTPUT_NODES_SHOULD_BE_DISABLED_IN_CAHNGE_PARAM

/// Max 3/7/08 SHOULD_PASS_WHOLE_STRING_OF_LPCSZRDLABEL_FOR_LOCALIZATION
//rd_set_optional(nEventID, bOKEnable, lpcszNodeName, trGetN.rd, bEnabled, _L("SurvFunc1"));
/// Max 4/8/08 move to event_utils.h
//string strLabel = "[<input>]<new>";
string strLabel = STR_DEFAULT_TEXT_FOR_REPORT_DATA_NODE;
//------
okutil_convert_localized_PDS(&strLabel); 
///Kyle 03/02/2009 SHOULD_NOT_CHANGE_OUTPUT_ON_GUI_ON_CHANGE_PARAMETERS
//tr_set_optional(nEventID, lpcszNodeName, trGetN.rd, bEnabled, strLabel);
if(!bIsChangeParam)
	tr_set_optional(nEventID, lpcszNodeName, trGetN.rd, bEnabled, strLabel);
///End SHOULD_NOT_CHANGE_OUTPUT_ON_GUI_ON_CHANGE_PARAMETERS
/// END SHOULD_PASS_WHOLE_STRING_OF_LPCSZRDLABEL_FOR_LOCALIZATION
*/
tr_set_optional_ex(nEventID, lpcszNodeName, trGetN.rd, xf_event_is_change_param(trGetN), 0 != get_plot_number(trGetN));
///------ End KAPLAN_MEIER_BETTER_HANDLING_OF_OUTPUT_PLOT_AND_REPORT_DATA

int nErr = km_check_input(trGetN);
///Jasmine 08/14/07 QA80-10207 REPORT_SHEET_CHECK_CONFLICT
if (nErr == CER_NO_ERROR && is_same_sheet(trGetN.rd, trGetN.rt))
	nErr = XFERR_REPORT_SHEET_CONFLICT;
///End REPORT_SHEET_CHECK_CONFLICT

/// YuI 08/19/09 QA70-14173 BRANCHED_RANGES_MAY_BE_INPROPERLY_INITIALIZED_IF_EMPTY_STRING
// should not set censor list until we know that input data is good
if( nErr != CER_NOT_SA_DATA && trRange && trCensor )
	set_censor_list(trRange, trCensor);
/// end BRANCHED_RANGES_MAY_BE_INPROPERLY_INITIALIZED_IF_EMPTY_STRING

if (CER_NO_ERROR != nErr)
{
	strErrMsg = nErr;
	if (nErr == CER_COL_NUM_NOT_ONE_EX)
		strErrMsg += ":" + _L("for Grouping Range");
	bOKEnable = false;
}

return true;
]]></event1><event2 NodeID="45" Label="Event2" DataID="376" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="5-20" Show="0"><![CDATA[
return false;	
]]></event2><event3 NodeID="45" Label="Event3" DataID="378" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="5-20" Show="0"><![CDATA[
//------ fisher 11/16/07 ADD_MAP_ID_TO_CHM
if(is_use_origin_chm())
	trGetN.SetAttribute(STR_HELPID_ATTRIB, IDD_XF_kaplanmeier);

/// Max 3/19/08 SHOULD_NOT_RESET_VARIABLE_VALUE_IN_LT
// It is the responsibility of users to specify each variable value (<auto> ones are exception) when run from LT
/*
///handle case that user select plot but not specify rd, when run from command
if (nGetNDialog <= 0)
{
	/// Max 3/7/08 LOCALIZE_PREDEFINED_STRING
	//if (!lstrcmp(trGetN.rd.strVal, "<optional>") && get_plot_number(trGetN))
	//{
		//trGetN.rd.strVal = "[<input>]<new name:=SurvFunc1>";
	//}
	if (compare_string_localization(trGetN.rd.strVal, STR_OPTIONAL) && get_plot_number(trGetN))
	{
		string strRDvalue = "[<input>]<new>";
		okutil_convert_localized_PDS(&strRDvalue);
		trGetN.rd.strVal = strRDvalue;
	}
	/// END LOCALIZE_PREDEFINED_STRING
}
*/
/// END SHOULD_NOT_RESET_VARIABLE_VALUE_IN_LT

///Jasmine 08/14/07 QA80-10207 REPORT_SHEET_CHECK_CONFLICT
//if ( (dwCntrl&LTXF_THEME_USED) && nGetNDialog <= 0 )
if (nGetNDialog <= 0 )
{
	//if ( CER_NO_ERROR != km_check_input(trGetN) )
	int nErr = km_check_input(trGetN);
	if(CER_NO_ERROR == nErr && is_same_sheet(trGetN.rd, trGetN.rt))
		nErr = XFERR_REPORT_SHEET_CONFLICT;
	if(CER_NO_ERROR != nErr)
	{
		if((dwCntrl&LTXF_THEME_USED))
			nRet = XFEVT_PROCEED_WITH_DLG;
		else
		{
			warning_msg_box(nErr, false, 'E');
			nRet = XFEVT_ABORT;
		}
	}
}
///End REPORT_SHEET_CHECK_CONFLICT

///Kyle 03/02/2009 SHOULD_NOT_CHANGE_OUTPUT_ON_GUI_ON_CHANGE_PARAMETERS
if( nGetNDialog == 0 && (dwCntrl & LTXF_EXECUTE) && 0 == get_plot_number(trGetN) )
	trGetN.rd.strVal = STR_OPTIONAL;
///End SHOULD_NOT_CHANGE_OUTPUT_ON_GUI_ON_CHANGE_PARAMETERS	]]></event3><event4 NodeID="45" Label="Event4" DataID="377" MultilineEditExpShrink="1" DispFormat="33554432" RowHeightRange="5-20" Show="0"><![CDATA[return false;]]></event4><GetNEvent NodeID="47" Label="GetNBox Event" DataID="379" Show="0" TypeID="65543" BlobArrElementaryType="8" xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="bin.base64">AA==</GetNEvent></codes><SaveInOpj NodeID="10" Label="Save with Object" DataID="560">0.</SaveInOpj><optargindex NodeID="14" Label="Option Argument Index" DataID="72">0.</optargindex><version NodeID="14" Label="Version" DataID="73">1.</version><category NodeID="11" Label="Primary Category" DataID="74" Show="0">Statistics\Survival Analysis</category><subcategory NodeID="11" Label="Primary Subcategory" DataID="77" Show="0"></subcategory><seccategory1 NodeID="11" Label="Secondary Category" DataID="75" Show="0"></seccategory1><secsubcategory1 NodeID="11" Label="Secondary Subcategory 1" DataID="78" Show="0"></secsubcategory1><seccategory2 NodeID="11" Label="Secondary Category 2" DataID="76" Show="0"></seccategory2><secsubcategory2 NodeID="11" Label="Secondary Subcategory 2" DataID="79" Show="0"></secsubcategory2><module NodeID="11" Label="Module" DataID="80">Pro</module><subGroup NodeID="17" Label="Subgroup Index Within a Category" Combo="-10|-9|-8|-7|-6|-5|-4|-3|-2|-1|0|1|2|3|4|5|6|7|8|9" DataID="82">0</subGroup><errmsgCount NodeID="14" Label="Number of Error Messages" DataID="412">2</errmsgCount><helpe NodeID="268435456" Label="English Help" DataID="420" RepeatID="256"><info NodeID="41" Label="Auto Complete Hint" DataID="422" RowHeightRange="2-8">Kaplan-Meier Estimator:  Perform a Kaplan-Meier (product-limit) analysis</info><summary NodeID="47" Label="Summary" DataID="421" Show="0"><![CDATA[]]></summary><example NodeID="47" Label="Examples" DataID="431" Show="0"><![CDATA[]]></example><ref NodeID="47" Label="References" DataID="432" Show="0"><![CDATA[]]></ref><algorithm NodeID="47" Label="Algorithm" DataID="434" Show="0"><![CDATA[]]></algorithm><parameters NodeID="47" Label="Parameters" DataID="444" Show="0"><![CDATA[]]></parameters><script NodeID="41" Label="LabTalk Script Example" Show="0" DataID="436" RowHeightRange="2-12">/*
This example is used to show how to use product-limit method to estimate the survival rate.
The sample data used is in

OriginPath\Samples\Statistics folder.

1. Import the sample data into a book in Origin
2. use kaplanmeier XF to calculate the values of survival function.
3. put the result into a new sheet
4. Plot the survival function into a new graph.
*/

/*Import the sample data into a new book*/
String fname$=system.path.program$+"Samples\Statistics\Kaplan-Meier.dat";
newbook;
impASC;
string bkn$=%H;

/*Use kaplanmeier XF to calculate the values of survival function*/
kaplanmeier irng:=[bkn$]1!(col(1),col(2)) censor:=0 quartile:=1 mean:=1 rt:=&lt;new name:="KaplanMeier"&gt;;

/*Plot the survival function in a new graph named "Survival Function Plot"*/
plotxy iy:=[bkn$]2!(col(1),col(2)) plot:=202 ogl:=&lt;new name:="Survival Function Plot"&gt;;

/*New a sheet to store the results of the Kaplan-Meier estimator*/
newsheet book:=bkn$ name:="Result" label:="Parameter|Estimate|95% CI_Lower|95% CI_Upper";
wcolwidth [bkn$]"Result"!1 12;

range Para=[bkn$]Result!col(1);
range Est=[bkn$]Result!col(2);
range Lower=[bkn$]Result!col(3);
range Upper=[bkn$]Result!col(4);


getresults iw:=[bkn$]3 tr:=mytree;


Para[1]$="25% of survival time";
Para[2]$="50% of survival time";
Para[3]$="75% of survival time";
Para[4]$="mean of survival time";

Est[1]=mytree.sa.quan.Quan1.Estim;
Est[2]=mytree.sa.quan.Quan2.Estim;
Est[3]=mytree.sa.quan.Quan3.Estim;
Est[4]=mytree.sa.mean.Mean.Estim;

Lower[1]=mytree.sa.quan.Quan1.LCI;
Lower[2]=mytree.sa.quan.Quan2.LCI;
Lower[3]=mytree.sa.quan.Quan3.LCI;
Lower[4]=mytree.sa.mean.Mean.LCI;

Upper[1]=mytree.sa.quan.Quan1.UCI;
Upper[2]=mytree.sa.quan.Quan2.UCI;
Upper[3]=mytree.sa.quan.Quan3.UCI;
Upper[4]=mytree.sa.mean.Mean.UCI;</script><errmsgs NodeID="47" Label="Error Messages" DataID="413" Show="0" TypeID="65543" BlobArrElementaryType="8" xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="bin.base64">AAAA</errmsgs></helpe><helpj NodeID="268435456" Label="Japanese Help" DataID="420" RepeatID="512"><description NodeID="11" Label="Description" DataID="440" CdPg="932">Kaplan-Meier法:Kaplan-Meierの積-極限法を行う。</description><customButtons NodeID="11" Label="GetN Dialog Custom Buttons" DataID="448" CdPg="932"></customButtons><info NodeID="41" Label="Auto Complete Hint" DataID="422" RowHeightRange="2-8" CdPg="932">Kaplan-Meier?:  Kaplan-Meier(?-??)??????????</info><summary NodeID="47" Label="Summary" DataID="421" Show="0" CdPg="932"><![CDATA[]]></summary><example NodeID="47" Label="Examples" DataID="431" Show="0" CdPg="932"><![CDATA[]]></example><ref NodeID="47" Label="References" DataID="432" Show="0" CdPg="932"><![CDATA[]]></ref><algorithm NodeID="47" Label="Algorithm" DataID="434" Show="0" CdPg="932"><![CDATA[]]></algorithm><parameters NodeID="47" Label="Parameters" DataID="444" Show="0" CdPg="932"><![CDATA[]]></parameters><script NodeID="41" Label="LabTalk Script Example" Show="0" DataID="436" RowHeightRange="2-12" CdPg="932"></script><errmsgs NodeID="47" Label="Error Messages" DataID="413" Show="0" CdPg="932"></errmsgs></helpj><helpg NodeID="268435456" Label="German Help" DataID="420" RepeatID="768"><description NodeID="11" Label="Description" DataID="440" CdPg="1252">Kaplan-Meier Schätzer:Eine Kaplan-Meier Analyse (produktlimitiert) durchführen</description><customButtons NodeID="11" Label="GetN Dialog Custom Buttons" DataID="448" CdPg="1252"></customButtons><info NodeID="41" Label="Auto Complete Hint" DataID="422" RowHeightRange="2-8" CdPg="1252">Kaplan-Meier Schätzer: Eine Kaplan-Meier Analyse (produktlimitiert) durchführen</info><summary NodeID="47" Label="Summary" DataID="421" Show="0" CdPg="1252"><![CDATA[]]></summary><example NodeID="47" Label="Examples" DataID="431" Show="0" CdPg="1252"><![CDATA[]]></example><ref NodeID="47" Label="References" DataID="432" Show="0" CdPg="1252"><![CDATA[]]></ref><algorithm NodeID="47" Label="Algorithm" DataID="434" Show="0" CdPg="1252"><![CDATA[]]></algorithm><parameters NodeID="47" Label="Parameters" DataID="444" Show="0" CdPg="1252"><![CDATA[]]></parameters><script NodeID="41" Label="LabTalk Script Example" Show="0" DataID="436" RowHeightRange="2-12" CdPg="1252"></script><errmsgs NodeID="47" Label="Error Messages" DataID="413" Show="0" CdPg="1252"></errmsgs></helpg><helpc NodeID="268435456" Label="Chinese Help" DataID="420" RepeatID="1024"><description NodeID="11" Label="Description" DataID="440" CdPg="936"></description><customButtons NodeID="11" Label="GetN Dialog Custom Buttons" DataID="448" CdPg="936"></customButtons><info NodeID="41" Label="Auto Complete Hint" DataID="422" RowHeightRange="2-8" CdPg="936"></info><summary NodeID="47" Label="Summary" DataID="421" Show="0" CdPg="936"><![CDATA[]]></summary><example NodeID="47" Label="Examples" DataID="431" Show="0" CdPg="936"><![CDATA[]]></example><ref NodeID="47" Label="References" DataID="432" Show="0" CdPg="936"><![CDATA[]]></ref><algorithm NodeID="47" Label="Algorithm" DataID="434" Show="0" CdPg="936"><![CDATA[]]></algorithm><parameters NodeID="47" Label="Parameters" DataID="444" Show="0" CdPg="936"><![CDATA[]]></parameters><script NodeID="41" Label="LabTalk Script Example" Show="0" DataID="436" RowHeightRange="2-12" CdPg="936"></script><errmsgs NodeID="47" Label="Error Messages" DataID="413" Show="0" CdPg="936"></errmsgs></helpc><SkipHiddenInDlg NodeID="10" Label="Skip hidden in dialog" DataID="295">0.</SkipHiddenInDlg><ClearMsg NodeID="10" Label="Auto Clear Error Message in dialog" DataID="296">1.</ClearMsg><KeepBtnStatus NodeID="10" Label="Keep Button Status for Event Handler" DataID="298">0.</KeepBtnStatus><SptApplyUndoButtonSts NodeID="10" Label="Control Apply and Undo button by User" DataID="294">0.</SptApplyUndoButtonSts><PreviewButton NodeID="10" Label="Show Preview Button" DataID="299">0.</PreviewButton><AutoApplyChkbox NodeID="10" Label="Show Auto Apply CheckBox" DataID="290">1.</AutoApplyChkbox><SkipHelpDoc NodeID="10" Label="Skip Help Document Processing" DataID="297">0.</SkipHelpDoc><SupportFolderLastUsed NodeID="10" Label="Support Folder Last Used Theme" DataID="291">0.</SupportFolderLastUsed><NotCloseOnEnterKey NodeID="10" Label="Do not Close Dialog upon Enter Key" DataID="292">0.</NotCloseOnEnterKey><seeAlso NodeID="11" Label="See Also" DataID="430"></seeAlso><relatedXF NodeID="11" Label="Related X-Functions" DataID="442">phm_Cox, weibullfit</relatedXF></OriginStorage>
