Learn R Programming

algebraic.dist (version 0.9.1)

vcov.univariate_dist: Method for obtaining the variance of univariate_dist object.

Description

Method for obtaining the variance of univariate_dist object.

Usage

# S3 method for univariate_dist
vcov(object, ...)

Value

Numeric scalar; the variance of the distribution.

Arguments

object

The distribution object.

...

Additional arguments to pass into expectation.

Examples

Run this code
vcov(normal(0, 4))    # 4
vcov(exponential(2))  # 0.25

Run the code above in your browser using DataLab