[R] help optimize

2011-07-01 Thread Edward Bowora
Hi I need help figure out how to fix my code. When I call into R >optimize(llik,init.params=F) I get this error message Error in optimize(llik, init.params = F) : element 1 is empty; the part of the args list of 'min' being evaluated was: (interval) My data and my code looks like b

[R] Help fix last line of my optimization code

2011-07-01 Thread Edward Bowora
Hi I need help figure out how to fix my code. When I call into R >optimize(llik,init.params=F) I get this error message Error in optimize(llik, init.params = F) : element 1 is empty; the part of the args list of 'min' being evaluated was: (interval) My data and my code looks like

[R] maximum likelihood using nlm to estimate 4 variables

2011-06-27 Thread Edward Bowora
Hi I need help I am new to R and am having problems estimating parameters out of 3stage constrained function. I have constructed a code as below and my data are two colomns of R_j and R_m(sample given below). R_j and R_m represents the dependent and independent variables respectively. The paramet

[R] maximizing the LDV model

2011-06-23 Thread Edward Bowora
Hi Please find attached document to see my problem that I wish you would assist me to solve. I want to maximise the LDV model to get alpha estimates. I am looking forward to hearing from you soon. Edward Actuarial Science student __ R-help@r-project.o