skewness: Calculate the skewness of a habitual intake distribution

View source: R/skewness.R

skewnessR Documentation

Calculate the skewness of a habitual intake distribution

Description

This function calculates the skewness of a habitual intake distribution. It handles gamma and log-normal distributions.

Usage

skewness(shape = NULL, rate = NULL, meanlog, sdlog = NULL)

Arguments

shape

Shape parameter for gamma distribution

rate

Rate parameter for gamma distribution

meanlog

Mean parameter for gamma distribution

sdlog

Standard deviation parameter for gamma distribution

Value

The skewness of the distribution

Examples

skewness(shape=1, rate=0.5)
skewness(meanlog=3, sdlog=1)

cfree14/nutriR documentation built on Oct. 31, 2024, 6:27 p.m.