<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Great, I have a few examples that I was using for learning and maybe
we should compare notes and maybe keep others informed.<br>
<br>
Laurie<br>
<br>
On 08/24/2011 10:29 AM, Rubén Roa wrote:
<blockquote
cite="mid:5CD78996B8F8844D963C875D3159B94A0111214D@DSRCORREO.azti.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="MS Exchange Server version
6.5.7654.12">
<title>RE: [ADMB Users] ADMB & R</title>
<!-- Converted from text/plain format -->
<p><font size="2">Hi Laurie,<br>
<br>
I am very interested and I think it would eventually become a
standard in nonlinear modeling: control everything from R but
when it comes to optimization, call an ADMB executable, a dll,
or the C++ code created by makeadm. This is the plan with my R
package CatDyn, available on CRAN. The current first version
is a pure R implementation, that uses the recent package
optimx for greater flexibility in selecting a numerical method
and for numerical diagnostics such as the Karesh-Kuhn-Tucker
optimality criteria. The next version of the package will give
the choice to optimize using ADMB code instead of R's
numerical methods. The model procedure I have in mind is:<br>
1) pre-processing of data, and selection of initial parameter
values with a toy version of the model in R,<br>
2) optimization with ADMB code but controlled from R, with
ADMB behind the scene, and<br>
3) capture of results, model diagnostics, and plotting results
in R.<br>
So I'm very interested in your work. If I can be of help I'd
be glad,<br>
<br>
Rubén<br>
<br>
Rubén H. Roa-Ureta, Ph. D.<br>
AZTI Tecnalia, Txatxarramendi Ugartea z/g,<br>
Sukarrieta, Bizkaia, SPAIN<br>
<br>
-----Original Message-----<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:users-bounces@admb-project.org">users-bounces@admb-project.org</a> on behalf of Laurie<br>
Sent: Tue 8/9/2011 2:50 PM<br>
To: <a class="moz-txt-link-abbreviated" href="mailto:Users@admb-project.org">Users@admb-project.org</a><br>
Subject: [ADMB Users] ADMB & R<br>
<br>
Maybe this is not the right forum for my email but here goes.<br>
<br>
I am currently creating several R packages that use ADMB code;
there are<br>
two ways of doing this i.e. use<br>
1) an executable and text files (e.g. glmmADMB) or<br>
2) create a dll or shared library<br>
<br>
There are advantages and disadvantages of both approaches, but
there are<br>
also some things that could be<br>
done to make it easier to mix ADMB & R, i.e. creation of<br>
a) make files that allow R & ADMB to be compiled
together across<br>
all platforms<br>
b) a set of standard R functions/methods for reading and
writing R<br>
& ADMB files<br>
c) adding to the basic ADMB output files to make it
easier to<br>
create R objects<br>
<br>
There is also an R package Rcpp that makes it easier to create
packages<br>
that combine R & C++, and this looks<br>
like something that could be "easily" adapted to make a
generic R/ADMB<br>
interface.<br>
<br>
I am actively working on these things now, and might even be
able to<br>
find funding for others. Is there any interest in<br>
pursuing this?<br>
<br>
<br>
Laurie<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Users@admb-project.org">Users@admb-project.org</a><br>
<a moz-do-not-send="true"
href="http://lists.admb-project.org/mailman/listinfo/users">http://lists.admb-project.org/mailman/listinfo/users</a><br>
<br>
</font>
</p>
</blockquote>
<br>
</body>
</html>