Hi fellow R users,

I'm trying to fit a model using nls with the following model definition:

y(t+1)=(th1*x1 + R1*x2) * exp(a1*x3) + (1-th1*x1 + R1*x2)*y(t)

y is the dependent variable (note on both sides of eq) and the x's represent 
the regressors.
th1, R1 and a1 are parameters to be estimated. The problem is non- linear and 
hence why I'm trying to fit using the well used "nls" function.

To fit the model I would like to be able to use the formula interface rather 
than build my own ugly function definition.
Any ideas if this is achievable and if not any ideas on how to fit this model?


Many thanks,

Wayne




----------------------------------------------------------------------------------------
Wayne Jones
Statistics & Chemometrics
Shell Global Solutions (UK)
Shell Technology Centre Thornton
P.O. Box 1, Chester CH1 3SH, United Kingdom
Tel: +44 (0) 151 373 5977 Mobile: +44 (0) 7896 536026
Email: wayne.w.jo...@shell.com<mailto:wayne.w.jo...@shell.com>
Intranet: Statistics and Chemometrics - Shell 
Wiki<http://sww.wiki.shell.com/wiki/index.php/Statistics_and_Chemometrics>
Internet: Shell Global Solutions<http://www.shell.com/globalsolutions>

Shell Global Solutions (UK) is a division of Shell Research Limited which has 
its Registered Office at Shell Centre, London SE1 7NA and is registered in 
England & Wales with No.539964.


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to