[R] Some help needed

2012-05-08 Thread li li
Dear all, For the following code, I have the error message "Error in uniroot(f1star, lower = -10, upper = 0, tol = 1e-10, lambda = lam[i], : f() values at end points not of opposite sign". It seems the problem occurs when lambda is equal to 0.99. However, there should be a solution for "f1

Re: [R] Some Help Needed

2012-04-24 Thread peter dalgaard
On Apr 24, 2012, at 05:52 , li li wrote: > Dear all, > I need to do some calculation where the code used are below. I get > error message when I choose k to be large, say greater than 25. > The error message is > "Error in integrate(temp, lower = 0, upper = 1, k, x, rho, m) : > the integral is

[R] Some Help Needed

2012-04-23 Thread li li
Dear all, I need to do some calculation where the code used are below. I get error message when I choose k to be large, say greater than 25. The error message is "Error in integrate(temp, lower = 0, upper = 1, k, x, rho, m) : the integral is probably divergent". Can anyone give some help on res