Hi,

Maybe knowing what you provided to the function call as a, b, c, and xi 
would help!
Since you're at it, think about using the dput() function to provide 
copy/pastable objects ;)

HTH,
Ivan

Le 8/17/2010 15:00, Yaacov Petscher a écrit :
> Greetings,
>
> I am a very novice user with R, and in the course of running a linking 
> procedure :
>
>
> P.old<- function (a, c, b, xi){
>                  #a contains a parameters
>                  #c contains c parameters
>                  #b contains b parameters
>                  #xi is a one column vector containing quadrature points for 
> xi(=theta-gamma)for one item
>
>                  tmp<- a*(xi-b)
>                  p<- c+(1-c)*pnorm(tmp)
>                  return(p)
> }
>
> I receive an error which states:
>
> Error in P.old(a[i], c[i], b[i], node) :
>    dims [product 40] do not match the length of object [0]
>
> I'm not exactly sure to what I should attend in changing the code. Any help 
> would be greatly appreciated!
>
> Yaacov
>
> Yaacov Petscher, Ph.D.
> Director of Research, Florida Center for Reading Research
> Associate in Research, Florida State University
> 2010 Levy Ave
> Suite 100
> Tallahassee, Florida, 32310
> 850-645-8963 (phone Tuesday/Thursday)
> 850-645-9477 (phone Monday/Wednesday/Friday)
> 850-644-9085 (f)
>
>
>       [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Ivan CALANDRA
PhD Student
University of Hamburg
Biozentrum Grindel und Zoologisches Museum
Abt. Säugetiere
Martin-Luther-King-Platz 3
D-20146 Hamburg, GERMANY
+49(0)40 42838 6231
ivan.calan...@uni-hamburg.de

**********
http://www.for771.uni-bonn.de
http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to