Displaying 2 results from an estimated 2 matches for "wijnmaand".
Did you mean:
wijnand
2006 Oct 31
4
'make check' fails on d-p-q-r-tests (PR#9326)
'make check' fails on d-p-q-r-tests:
> ##-- non central Chi^2 :
> xB <- c(2000,1e6,1e50,Inf)
> for(df in c(0.1, 1, 10))
+ for(ncp in c(0, 1, 10, 100)) stopifnot(pchisq(xB, df=df, ncp=ncp) == 1)
Error: pchisq(xB, df = df, ncp = ncp) == 1 is not all TRUE
Execution halted
Here is some more testing:
xB <- c(2000,1e6,1e50,Inf)
for(df in c(0.1, 1, 10)) for(ncp in c(0, 1,
2005 Oct 27
3
Strange behaviour of type conversion (PR#8256)
Where is my error??
I have a strange behaviour in R, looks like type conversions are messed =
up.
Maybe i just make a stupid mistake, but help would be appreciated.
To reproduce:
expected:
> typeof(3)
[1] "double"
> as.integer(3)
[1] 3
> typeof((0.3/0.1))
[1] "double"
!!!! strange:
> as.integer((0.3/0.1))
[1] 2
also for trunc:
>trunc(c(5,7))
[1] 5 7