Re: [R] Pasting a list of parameters into a function

2013-01-25 Thread bsm2
Thanks for taking to time to help me out with this, I really appreciate it! Quoting "S Ellison-2 [via R]" : > > >> -Original Message- >> I'd love to write a code that would allow me replace the example code: >> >> fit1F <- mle2(LL, fixed=list(xhalf=6)) >> >> with something like: >> >> v

Re: [R] Pasting a list of parameters into a function

2013-01-25 Thread S Ellison
> -Original Message- > I'd love to write a code that would allow me replace the example code: > > fit1F <- mle2(LL, fixed=list(xhalf=6)) > > with something like: > > var<-xhalf > val<-6 > > fit1F <- mle2(LL, fixed=list(var=val)) > > or > > var<-c("xhalf","=") > val<-6 > > fit1F <- ml

Re: [R] Pasting a list of parameters into a function

2013-01-25 Thread Prof J C Nash (U30A)
er To: hp wan,r-help@r-project.org Subject: Re: [R] Pasting a list of parameters into a function Message-ID:<3ad1a172-d00c-43a5-b949-20873debd...@email.android.com> Content-Type: text/plain; charset=UTF-8 The eigenvalue problem is not unique to R. This is an R mailing list. What is your que

Re: [R] Pasting a list of parameters into a function

2013-01-24 Thread Berend Hasselman
On 24-01-2013, at 18:56, hp wan wrote: > Hi mailing listers, > > Sorry, I made a little mistake in the previous mail. B^{1} should be B^{-1}. > > Is there certain function in R deal with how to compute generalized > eigenvalues, that is the problem: A*x* = ëB*x *? When I use > eigen(B^{-1}*A),

Re: [R] Pasting a list of parameters into a function

2013-01-24 Thread Jeff Newmiller
The eigenvalue problem is not unique to R. This is an R mailing list. What is your question about R? --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live G

Re: [R] Pasting a list of parameters into a function

2013-01-24 Thread hp wan
Hi mailing listers, Sorry, I made a little mistake in the previous mail. B^{1} should be B^{-1}. Is there certain function in R deal with how to compute generalized eigenvalues, that is the problem: A*x* = ëB*x *? When I use eigen(B^{-1}*A), error happened. It displays there are many Inf element

Re: [R] Pasting a list of parameters into a function

2013-01-24 Thread hp wan
Hi mailing listers, Is there certain function in R deal with how to compute generalized eigenvalues, that is the problem: A*x* = ëB*x *? When I use eigen(B^{1}*A), error happened. It displays there are many Inf elements in B^{1}. Thanks Huaping Wan [[alternative HTML version deleted]]

Re: [R] Pasting a list of parameters into a function

2013-01-24 Thread S Ellison
> I'm trying to iterate model fits while holding one variable > (l,a,b or s) constant. In order to do this, each time I need > to re-run the mle2 fit with one variable held constant, Have you read the help page closely enough, I wonder? If I look at the mle2 help page, I see an argument called

Re: [R] Pasting a list of parameters into a function

2013-01-24 Thread bsm2
I'm still having trouble, I think that I may have poorly explained the problem I'm running into. The code I'm working with looks like this: mle.nb<-function(l,a,b,s){ t1pred=(data$T*l)/(1+a*data$T)^b -sum(dnbinom(x=data$T.1, mu=t1pred, size=s,log=TRUE)) } fit.mle.nb=mle2(mle.nb, start=lis

Re: [R] Pasting a list of parameters into a function

2013-01-24 Thread S Ellison
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of bsm2 > Sent: 23 January 2013 20:00 > To: r-help@r-project.org > Subject: [R] Pasting a list of parameters into a function > > I need to repeat a function many times, with diff