Currently, when a test for a specific row cannot be executed because of special corner cases like constant values, only test statistic, p-value, and confidence intervals are turned to NA. As a result, in some situations, degrees of freedom can be still returned as 0 or even -1, and standard-error often is returned as NaN.
Better - turn all outputs computed by the test to NA, except for descriptive statistics like mean, number of observations, etc.
Currently, when a test for a specific row cannot be executed because of special corner cases like constant values, only test statistic, p-value, and confidence intervals are turned to NA. As a result, in some situations, degrees of freedom can be still returned as 0 or even -1, and standard-error often is returned as NaN.
Better - turn all outputs computed by the test to NA, except for descriptive statistics like mean, number of observations, etc.