Displaying 4 results from an estimated 4 matches for "berkowitsch".
2011 Mar 04
2
overleap an iteration within a for-loop when error message produced
...subject in 1:10) {
p[subject] = pmnorm(x = subject*c(-.3,1), varcov = diag(2))
}
Assume that the 5th iteration (subject=5) leads to the error message.
How can I tell R to continue with the 6th iteration?
Thanks a lot for you help and input,
Nicolas
____________
lic. phil. Nicolas A. J. Berkowitsch
Universit?t Basel
Fakult?t f?r Psychologie
Economic Psychology
Missionsstrasse 62a
CH-4055 Basel
Tel. +41 61 267 05 75
E-Mail nicolas.berkowitsch at unibas.ch
Web http://psycho.unibas.ch/abteilungen/abteilung-details/home/abteilung/economic-psychology/
2010 Dec 15
1
pmnorm: probabilites don't sum up to 1
...alculating pZ directly using pmnorm.
2. I could calculate the relationship of pX to the sum of pX + pY + pZ
(? pX/(pX + pY + pZ) )
Can anyone explain to me why the probabilities don?t sum up to 1? How
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
Tel. +41 61 267 05 75
E-Mail nicolas.berkowitsch at unibas.ch
Web
http://psycho.uniba...
2011 May 27
0
saving multiple arrays from a foreach loop
...(NA,dim=c(4,n.vpn,n.l?ufe))
tempList = list(matrix(NA,4,n.vpn),matrix(NA,4,n.vpn))
system.time(notcreative <- foreach(j=1:n.run) %dopar% {
tempList=check(j)
x[,,j] = tempList$sme
y[,,j] = tempList$test
})
stopWorkers(workers)
--
____________
lic. phil. Nicolas A. J. Berkowitsch
Universit?t Basel
Fakult?t f?r Psychologie
Economic Psychology
Missionsstrasse 62a
CH-4055 Basel
Tel. +41 61 267 05 75
E-Mail nicolas.berkowitsch at unibas.ch
Web http://psycho.unibas.ch/abteilungen/abteilung-details/home/abteilung/economic-psychology/
2011 May 27
0
object not found with %dopar% when using foreach
......
for (sit in 1:n.sit){
S3 = ...
pDFT3 = ... dft3(..)
}
return(LL.DFT)
}
foreach(k=1:n.run) %dopar% {
for (j in 1:n.subj) {
...
valuesDFT = nlminb(start=..., objective = optDFT)
}
}
--
____________
lic. phil. Nicolas A. J. Berkowitsch
Universit?t Basel
Fakult?t f?r Psychologie
Economic Psychology
Missionsstrasse 62a
CH-4055 Basel
Tel. +41 61 267 05 75
E-Mail nicolas.berkowitsch at unibas.ch
Web http://psycho.unibas.ch/abteilungen/abteilung-details/home/abteilung/economic-psychology/