Skip to content
Back to formatted view

Raw Message

Message-ID: <353595039.3097987.1648126317567@mail.yahoo.com>
Date: 2022-03-24T12:51:57Z
From: varin sacha
Subject: Exact 95% CI around the mean for LogNormal distribution
In-Reply-To: <1792159808.4311786.1647461411863@mail.yahoo.com>

Many thanks for your response. 







Le mercredi 16 mars 2022, 21:11:06 UTC+1, varin sacha via R-help <r-help at r-project.org> a ?crit : 





Dear R-experts,

I have used the EnvStats package and the elnorm function (p. 248).
I would like to calculate the exact 95% confidence intervals around the mean, not around the meanlog.
Here below my R code, how can I get the exact 95% CIs around the mean ?
Many thanks.


library(EnvStats)
x=rlnorm(100000,0,1)
mean(x)
elnorm(x,method="mvue",ci=TRUE,ci.type="two-sided",ci.method="exact",conf.level=0.95)

______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.