Skip to contents

Create or cast to a mean_tobit object

Usage

as_mean_tobit(mu, sd, message = NULL)

# Default S3 method
as_mean_tobit(mu, sd, message = NULL)

Arguments

mu

The arithmetic mean

sd

The arithmetic standard deviation

message

Additional information about the mean

Value

A 'mean_tobit' class object which is a number with attributes for 'sd' and 'message'.

See also

Other Class creation and coercion: as_cv_tobit(), as_geomean_tobit(), as_sd_tobit()

Examples

as_mean_tobit(mu=10, sd=2, message="This is just an example")
#> [1] 10
#> attr(,"sd")
#> [1] 2
#> attr(,"message")
#> [1] "This is just an example"
#> attr(,"class")
#> [1] "mean_tobit"