search for: numint

Displaying 4 results from an estimated 4 matches for "numint".

Did you mean: num2int
2008 Mar 19
1
problem with optim and integrate
Dear all, I want to min "integrate( (p1*dnorm+p2*dnorm+p3*dnorm)^(1.3))" for p, mu, and sigma. So, I have to estimate 8 parameters(p3=1-p1-p2). I got this warning-"Error in integrate(numint, lower = -Inf, upper = Inf) : non-finite function value." My questions are How could I fix it? I tried to divide into several intervals and sum up, but I got same message. My code is ----------------------------------------------------------------------------------- alpha=1.3; theta0=c(...
2007 Feb 27
1
Additional args to fun in integrate() not found?
...t;p" not recognized? 2) what are these warning messages? PROGRAM CODE: --------------------------- #THIS LIBRARY IS NEEDED FOR THE INCOMPLETE GAMMA FUNCTION library(zipfR) #------------------------------------------------------------------------ gedCDF = function(yvec, p=2, mu=0, scale=1, numint=0) { #------------------------------------------------------------------------- #Setting k to sqrt(2) and the GED with p=2 coincides with standard normal. #Set k=1 and GED with p=1 coincides with Laplace. k<-sqrt(2) #k<-1 scale<-scale*k zvec<-(yvec-mu)/scale cdf<-matrix(0, l...
2008 Apr 26
1
integration error when I use "optim" and "integrate" simultaneously
Dear R users, When I use two functions, 'optim' and 'integrate', simultaneously, I always get an error like this -------------------------------------------------------------------------- numint = function(z) { dlnorm(z,mu[1],sqrt(exp(g[1]))) * dnorm((z-mu[2])/sqrt(exp(g[2])))/sqrt(exp(g[2])) } integrate(numint,lower=0,upper=Inf)$value Error in integrate(numint, lower = 0, upper = Inf) : non-finite function value -------------------------------------------------------------------------...
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi, This series targets automatic boot menu generation, but most of it is the Lua upgrade, because I got tired reading deprecated API docs. It's mostly a straightforward forward port of the earlier Syslinux specific changes to Lua 5.1, except that: * I chose the add a stub getenv() implementation to the COM32 API instead of #ifdefing out all the references in Lua, and * I kept oslib