Displaying 1 result from an estimated 1 matches for "datafromexcel".
2004 Aug 26
1
EM norm package (NA/NaN/Inf in foreign function call (arg 2))
...he 200th scenario:
Iterations of EM:
1...2...3........348...349...Error: NA/NaN/Inf in foreign function call
(arg 2)
The following code should replicate the error by downloading the dataset
from the internet (it is not too big):
library(norm)
df<-download.file("http://www.tariqkhan.org/R/DataFromExcel.csv",
"C:/Program Files/R/d.csv")
mat<-as.matrix(read.table("C:/Program Files/R/d.csv", sep = ","))
s<-prelim.norm(mat)
rngseed(1234567)
thetahat<-em.norm(s, maxits = 1000, criterion = 0.0035)
Iterations of EM:
1...2...3........348...349...Error: NA/NaN/...