Note that there are some explanatory texts on larger screens.

plurals
  1. POSummary variables in Hmisc - Output disappears with PRMSD=True
    primarykey
    data
    text
    <p>I'm trying to modify the call on summary.formula. I have seen the posts on the function:</p> <p><a href="https://stackoverflow.com/questions/3718497/change-summary-variables-returned-by-hmisc-summary">Change summary variables returned by Hmisc summary()</a></p> <p>I'm trying to include the mean and standard deviation in my table. When I modify my command to include prmsd=TRUE, the data disappears, and I get the error messageL</p> <pre><code>Warning message: In min(nc[nc &gt; 0]) : no non-missing arguments to min; returning Inf </code></pre> <p>Below is what I'm seeing. First is the call without prmsd, then the call with prmsd. Any ideas as to what's going on here? Given the error message, I think there's a problem with na.rm=TRUE not handling the missing values properly, but I'm not sure how to fix it.</p> <pre><code>print(summary.formula(S~Kyph, na.rm=TRUE, data=radio, method="reverse")) Descriptive Statistics by S +----+---+--------------------------+-----------------------+-----------------------+ | |N |Guru Teg Bahadur Hospital |St. Stephens Hospital |VIMHANS Hospital | | | |(N=37) |(N=1) |(N=75) | +----+---+--------------------------+-----------------------+-----------------------+ |Kyph|109|13.6625/20.7100/29.1325 |11.6400/11.6400/11.6400| 0.0000/ 9.6200/17.1650| +----+---+--------------------------+-----------------------+-----------------------+ print(summary.formula(S~Kyph, na.rm=TRUE, data=radio, method="reverse"), prmsd=TRUE) Descriptive Statistics by S +----+---+--------------------------+----------------------+-----------------+ | |N |Guru Teg Bahadur Hospital |St. Stephens Hospital |VIMHANS Hospital | | | |(N=37) |(N=1) |(N=75) | +----+---+--------------------------+----------------------+-----------------+ |Kyph|109| | | | +----+---+--------------------------+----------------------+-----------------+ Warning message: In min(nc[nc &gt; 0]) : no non-missing arguments to min; returning Inf </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload