Skip to contents

Since the standard deviation is almost always desired with the mean, it is more efficient to use as_sd_tobit() on the mean object instead of calculating the standard deviation separately.

Usage

sd_tobit(...)

Arguments

...

Arguments passed on to mean_tobit

x

A numeric vector

lower,upper

The lower and upper bounds for censoring x

include_equal,include_equal_lower,include_equal_upper

Should the bounds consider x <= lower and x >= upper (if TRUE) or x < lower and x > upper (if FALSE) to be censored? (include_equal is overridden by setting include_equal_lower or include_equal_upper.)

distribution

What distribution (Student "t" or "normal") should be used. If "t", the degrees of freedom are the number of non-NA values in x.

na.rm

A logical value indicating whether NA values should be stripped from x before the computation proceeds.

Value

A "sd_tobit" class object

See also

Other Censored Descriptive Statistics: geomean_tobit(), mean_tobit()