>library</span>(<span class='no'>survxai</span>)
<span class='fu'>library</span>(<span class='no'>rms</span>)
<span class='fu'>data</span>(<span class='st'>"pbcTest"</span>)
<span class='fu'>data</span>(<span class='st'>"pbcTrain"</span>)
<span class='no'>predict_times</span> <span class='kw'>&lt;-</span> <span class='kw'>function</span>(<span class='no'>model</span>, <span class='no'>data</span>, <span class='no'>times</span>){
                  <span class='no'>prob</span> <span class='kw'>&lt;-</span> <s