Re: [R] LogLik of nls

2013-01-31 Thread Bert Gunter
methods(logLik) ## for S3 methods stats:::logLik.nls ### and look at the code! -- Bert On Thu, Jan 31, 2013 at 12:06 PM, Diviya Smith wrote: > Hello there, > > Can anyone point me to the code for logLik of an nls object? I found the > code for logLik of an lm but could not find exactly what fu

[R] LogLik of nls

2013-01-31 Thread Diviya Smith
Hello there, Can anyone point me to the code for logLik of an nls object? I found the code for logLik of an lm but could not find exactly what function is used for calculating the logLik of nls function? I am using the nls to fit the following model to data - Model 1: y ~ Ae^(-mx) + Be^(-nx) +c