s-news
[Top] [All Lists]

integrating

To: "'s-news@wubios.wustl.edu'" <s-news@wubios.wustl.edu>
Subject: integrating
From: "Fox, G.J.A. (EDTE)" <G.J.A.Fox@edte.utwente.nl>
Date: Wed, 29 Jan 2003 10:26:37 +0100
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> 
_________________________________________________

 
 

<Prev in Thread] Current Thread [Next in Thread>