Re: [R] mean and variance of ratio

From: Christian Ritz <>
Date: Mon, 18 Feb 2008 15:53:25 +0100

Dear Irene,

if you have a vector of estimates of x1, x2, y1, y2 and the corresponding estimated variance-covariance matrix (accessible through the method "vcov"), then one possibility is to use the function delta.method() in the package alr3 (on CRAN).

This function returns:

  1. an estimate of the ratio (which is simply obtained by plugging in the estimates of x1, x2, y1, y2) and
  2. an approximate, large-sample standard error of the estimated ratio

Christian mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 18 Feb 2008 - 14:55:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Feb 2008 - 15:30:14 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive