Hello,
I want to compute an integral (splus 6, win98),
Y is a vector of real values length 100.
integrand <- function(x) sum(log(dnorm(Y,mean=x,sd=1)))
this integrand function works fine.
integrate( integrand,lower=0,upper=1)$integral
this command gives the error stament
Problem in qf15(f, lower, upper, aux = optargs(list(...), f, 1)): f is not
vectorized - length(f(x))!=length(x)
my question, what is the problem?
Jean-Paul Fox.
_________________________________________________
dr.ir. G.J.A. Fox
Twente University
Faculty of Educational Science and Technology
PO. Box 217, 7500 AE Enschede
The Netherlands
E-Mail FoxJ@edte.utwente.nl <mailto:FoxJ@edte.utwente.nl>
_________________________________________________
|