Displaying 20 results from an estimated 800 matches similar to: "bug in pnorm (PR#699)"
2012 Feb 16
3
ACM Software Copyright and License Agreement
ACM Software Copyright and License Agreement
I have often seen the use of routines from the ACM Collected Algorithms, i.e.
<netlib.org/toms/> (CALGO, or Trans. On Math. Software, TOMS), in Open Source
programs, maybe also in some R packages --- and sometimes these programs are
distributed under the GPL license, sometimes under proprietary licenses, e.g.
in Scilab.
The use of these CALGO
2006 Mar 24
1
R crashes when loading library/package; Windows, Cygwin
Dear list members,
This is a question is about building an R package under windows and cygwin. Please bear with me.
I have a package in R that compiles well on my stationary computer (WINDOWS NT, R 1.8.1 and prior), and the resulting (package_version).zip file works well there. It contains an R script file and a C file.
After installing tools to build the package on my laptop, the package
2004 Jun 24
3
R 1.9.0, special characters in variable names.
Hello all,
I upgraded from R 1.8.1 to 1.9.0 (Windows XP), and spotted an odd thing.
The last three letters in the Swedish alphabet are ??, ?? and ??. (In case they don't show correctly: they are a with a ring, a with two dots, and o with two dots (HTML: å ä ö).
When I use these as variable names in a data.frame, odd things happen:
In R 1.8.1, ?? (å)
2004 Jul 28
2
Simulation from a model fitted by survreg.
Dear list,
I would like to simulate individual survival times from a model that has been fitted using the survreg procedure (library survival). Output shown below.
My plan is to extract the shape and scale arguments for use with rweibull() since my error terms are assumed to be Weibull, but it does not make any sense. The mean survival time is easy to predict, but I would like to simulate
2004 Jun 24
1
Summary R 1.9.0, special characters in variable names.
Summary:
The locale setting in the operating system seems to be involved in what confused me a little bit.
Thank you all for your help, especially the suggested work-around data.frame(..., check.names=F) which works very well.
A mystery still to be solved is why two versions of R, running on the same machine on the same time, behaves differently.
Please do not respond to this on the list. I
2004 Jan 08
1
(no subject)
Hello,
I have trouble converting a character string to a R object. Let me describe this by an example;
> dim(a)
[1] 270 14
> dim("a")
NULL
> names(a)
[1] "Var1" "Var2" "Var3" "Var4" "Var5" "Var6" "Var7" "Var8" "Var9"
[10] "Var10" "Var11" "Var12"
2004 Sep 01
1
Advice on good programming practice, lexical scope
In "An Introduction to R" (See R help menu), there is an example of a function 'open.account' that makes use of the lexical scope in R.
I have a set of functions that can be used to output R tables and graphics into a single report document. (I am aware that several tools can do this already).
While reorganizing my code, I realize that I can collect my functions in a list, in
2005 Mar 21
1
Sv: Using locator() to digitise
Hi,
Splus allows pasting a graphics object into the plotting window, which makes it possible to do what you describe below.
Now I use R which doesn't seem to allow pasting the picture into the graphics window, so I copy the graph onto a transparency
sheet, and stick it onto my screen using tape. The coordinates need to be converted to make sense (as you describe).
My methodology with the
2007 Sep 13
2
Reciprocal Mill's Ratio
I believe that this may be more appropriate here in r-devel than in r-help.
The normal hazard function, or reciprocal Mill's Ratio, may be obtained
in R as dnorm(z)/(1 - pnorm(z)) or, better, as dnorm(z)/pnorm(-z) for
small values of z. The latter formula breaks dowm numerically for me
(running R 2.4.1 under Windows XP 5.1 SP 2) for values of z near 37.4
or greater.
Looking at the pnorm
2004 Jan 08
0
(no subject)
Seems like get() is what you are looking for; e.g., try dim(get("a")),
names(get("a")), etc.
HTH,
Andy
> From: Sixten Borg
>
> Hello,
>
> I have trouble converting a character string to a R object.
> Let me describe this by an example;
>
> > dim(a)
> [1] 270 14
> > dim("a")
> NULL
>
> > names(a)
> [1]
2004 Oct 10
1
Modified Bessel function (third kind)
Hi:
There is a Modified Bessel function (third kind,
real order) besselK in R. Is there a C version of this
function?
I can only find a Fortran function rkbesel on
http://www.netlib.org/specfun/. However, this rkbesel
fortran function is the second kind.
Thank you!
liu
_______________________________
Declare Yourself - Register online to vote today!
2004 Aug 06
3
Bug in qnorm or pnorm?
I found the following strange behavior using qnorm() and pnorm():
> x<-8.21;x-qnorm(pnorm(x))
[1] 0.0004638484
> x<-8.22;x-qnorm(pnorm(x))
[1] 0.01046385
> x<-8.23;x-qnorm(pnorm(x))
[1] 0.02046385
> x<-8.24;x-qnorm(pnorm(x))
[1] 0.03046385
> x<-8.25;x-qnorm(pnorm(x))
[1] 0.04046385
> x<-8.26;x-qnorm(pnorm(x))
[1] 0.05046385
> x<-8.27;x-qnorm(pnorm(x))
2005 Aug 30
2
about "pnorm"
As to the function"pnorm",the default degree of freedom(df) is infinite.
I wanna know how to set the df as I want.
Help on pnorm doesn't have df setting.The only choice are:"mean, sd, lower.tail, log.p",but no df.
For instance:
sample size=6
df=6-1=5
t value=9.143
I wanna to the corresponding p value by using function "pnorm".
How can I do it?
Thanks a lot
2004 Aug 13
0
pnorm, qnorm
Trenkler, Dietrich said:
>
> I found the following strange behavior using qnorm() and pnorm():
>
> > x<-8.21;x-qnorm(pnorm(x))
> [1] 0.0004638484
> > x<-8.28;x-qnorm(pnorm(x))
> [1] 0.07046385
> > x<-8.29;x-qnorm(pnorm(x))
> [1] 0.08046385
> > x<-8.30;x-qnorm(pnorm(x))
> [1] -Inf
>
qnorm(1-.Machine$double.eps)
[1] 8.12589
2010 May 13
1
results of pnorm as either NaN or Inf
I stumbled across this and I am wondering if this is unexpected behavior
or if I am missing something.
> pnorm(-1.0e+307, log.p=TRUE)
[1] -Inf
> pnorm(-1.0e+308, log.p=TRUE)
[1] NaN
Warning message:
In pnorm(q, mean, sd, lower.tail, log.p) : NaNs produced
> pnorm(-1.0e+309, log.p=TRUE)
[1] -Inf
I don't know C and am not that skilled with R, so it would be hard for me
to look into
2000 Jun 19
1
missing include in pnorm.c (PR#575)
Full_Name: Julian Faraway
Version: R-Release (June 15)
OS: Linux (redhat)
Submission from: (NULL) (141.211.66.172)
R fails to compile on the current released version. Some constants
are undefined in pnorm.c. It appears that adding
#include "nmath.h"
to pnorm.c solves this problem.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list
2006 Aug 09
1
decimal accuracy in pnorm( )
Dear R users
Is there any way to increase the decimal accuracy for the normal probability distribution? When one needs an accurate p-value for instance this is provided by
pnorm(10,lower.tail=F)
[1] 7.619853e-24
However, what happens when instead of a P[X<x], a more accurate P[X>=x] is the objective.
Thank you in advance for your responses.
Dimitris
[[alternative HTML version
2003 Apr 30
1
pnorm conditional (PR#2883)
--=-YFjXKq8/D/t1qWmIzQ9D
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
I was going over the source in src/nmath/pnorm.c and noticed a little
bug in pnorm_both (in R 1.7.0). The else-if on line 205 covers the
entire real line. Seems you want an &&, not an ||. Doesn't make a big
difference (you still get a 0 or 1 from extreme starting values) but
your log
2004 Apr 06
0
Extracting the survival function estimate from a survreg object.
Hello all,
I want to extract the survival function estimate from a model fitted by survreg().
Using predict.survreg(..., type="quantile", p=seq(0,1,0.001)), gives the quantiles, which
I managed to turn around into a survival function estimate (Prob{T > t} as function of t).
Is there a more straightforward way of doing this? I have had difficulties using pweibull() with
the
2004 Feb 18
0
Ang: How to write efficient R code
Hej Lennart,
I would like to add one thing:
Often, there already exists an R function that solves the problem at hand. Instead of writing your own function, search the help files [apropos(), help.search()]. What I some times find difficult though, is guessing what key words will produce relevant search hits...
Mvh
Sixten
>>> <Lennart.Borgman at astrazeneca.com> 2004-02-17