[R] object not found with %dopar% when using foreach

2011-05-27 Thread Nicolas Berkowitsch
Dear R-List member, tried implement the foreach loop. It works fine, when I'm using %do%, but not when I'm using %dopar%. I always receive one of the following error messages: error in { : task 1 failed - "Objekt 'S3' not found" - could the .export be an solution for this?? Any help is muc

[R] saving multiple arrays from a foreach loop

2011-05-27 Thread Nicolas Berkowitsch
Dear R-List member, I have a problem when I'm trying to save two arrays from a foreach-loop. I'm also not sure whether this is possible or just my inexperience. However, this works perferctly fine with a for-loop. Here is an example code - any help is much appreciated!!: n.vpn =

Re: [R] overleap an iteration within a for-loop when error message produced

2011-03-04 Thread Nicolas Berkowitsch
Links 653, 9000 Gent ring: 09/264.59.36 -- Do Not Disapprove -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Nicolas Berkowitsch Sent: vrijdag 4 maart 2011 11:05 To: r-help@r-project.org Subject: [R] overleap an iteration within

[R] overleap an iteration within a for-loop when error message produced

2011-03-04 Thread Nicolas Berkowitsch
Dear R-list member, I'm using the function pmnorm() (-->library(mnormt)) within a for-loop. Certain parameter values leads to an error message: "(In sqrt(diag(S)) : NaNs produced, In sqrt(1/diag(V)) : NaNs produced, In cov2cor(S) : diag(.) had 0 or NA entries; non-finite result is doubtful)"

Re: [R] pmnorm: probabilites don't sum up to 1

2010-12-15 Thread Nicolas Berkowitsch
mean,c(0,0),varcov))) --> denominator This now sums up to 1 (or nearly) - I guess this should be the correct way of doing it, right? Thanks, Nicolas Zitat von peter dalgaard : On Dec 15, 2010, at 11:40 , Nicolas Berkowitsch wrote: Dear list member, I struggle with the problem, why

[R] pmnorm: probabilites don't sum up to 1

2010-12-15 Thread Nicolas Berkowitsch
should I rewrite the R-code to overcome this problem? Thanks a lot for any advice! Nicolas Berkowitsch Ph.D. Student University of Basel Switzerland lic. phil. Nicolas A. J. Berkowitsch Universität Basel Fakultät für Psychologie Economic Psychology Missionsstrasse 62a CH-4055 Basel