Learn R Programming

demography (version 2.0)

sex.ratio: Compute sex ratios from mortality rates

Description

Calculates the Male/Female ratios from historical or forecasted mortality rates.

Usage

sex.ratio(data)

Value

Functional time series of sex ratios.

Arguments

data

Demogdata object of type “mortality” such as obtained from read.demogdata, or an object of class fmforecast such as the output from forecast.fdm or forecast.lca.

Author

Rob J Hyndman

Examples

Run this code
plot(sex.ratio(fr.mort),ylab="Sex ratios (M/F)")

Run the code above in your browser using DataLab