in reply to qnorm question
The underlying DCDFLIB routine cdfnor() actually does take mean and stddev parameters, but the XS code (Perl binding) which calls the DCDFLIB routine uses hardcoded values for mean and stddev (0.0 and 1.0). This is no big problem, however, as you can easily scale/displace the return value yourself. Just multiply by the stddev, and add the mean, e.g.
use Math::CDF qw(qnorm); for my $p (0.33, 0.67) { print qnorm($p) * 2.5 + 44, "\n"; }
which gives
42.9002170858169 45.0997829141831
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: qnorm question
by Anonymous Monk on Mar 21, 2007 at 19:20 UTC |