search for: carfun

Displaying 2 results from an estimated 2 matches for "carfun".

Did you mean: carfan
2001 Nov 21
2
dw statistic
...for spending your time replying to my mail. I'm very impressed with the speed that my question was answered. I'm new at R (about two weeks) and reading your mail made me realize that it was indeed a question of vectors of different lengths. I thinked that I could create a function ("carfun") without creating a "x" vector, since the only purpose of that function is to be integrated right away in the same "x" (I re-posted my function again at the end). But now I have another question: since "x" must be of "(dw-eigen)"'s length, how...
2001 Nov 20
1
warning message
Hello everybody. I would like to pose a question regarding a warning message after running a function of my own. The function I created for computing the p-value of the dw statistic has a command line like this: »dwf0 <- function(dw,eigen) { carfun <- function(x) { (prod(1+2*(eigen-dw)*1i*x)^(-1/2)-prod(1-2*(eigen-dw)*1i*x)^(-1/2))/(1i*x) } ; 1/2+integrate(f=carfun,lower = 0,upper = Inf, subdivisions=10000)$value/(2*pi) } , with arguments "dw" as a real and "eigen" as a vector. After I run: »dwf0(1.314416,c(3.44...