Displaying 20 results from an estimated 4000 matches similar to: "Extending R formulas"
2008 Aug 06
1
Numerical optimisation and "non-feasible" regions
Dear list,
I'm currently writing a C code to compute the (composite) likelihood -
well this is done but not really robust. The C code is wrapped in an R
one which call the optimizer routine - optim or nlm. However, the
fitting procedure is far from being robust as the parameter space
depends on the parameter - I have a covariance matrix that should be a
valid one for example.
Currently,
2008 Apr 06
2
Matrix multiplication in a C code
Dear list members,
I've got a small question on matrix multiplications in a C code. Because
of a really cpu demanding likelihood, I had to use a C code within an R
function wrapper. I'm pretty sure that there is already one good code
for matrix multiplication in C - maybe in the R source code itself - but
I wasn't able to find it.
Anyone as an idea on how to handle matrix
2008 Aug 08
2
Suggestion for the optimization code
Dear list,
Here's a suggestion about the different optimization code. There are
several optimization procedures in the base package (optim, optimize,
nlm, nlminb, ..). However, the output of these functions are slightly
different. For instance,
1. optim returns a list with arguments par (the estimates), value the
minimum (maxima) of the objective function, convergence (optim
2008 May 09
1
Have you ever experienced this problem with REAL in a C code
Dear all,
I'm currently experiencing big troubles with my C code called by .Call
in a R function.
I know this may not be the right place for such things but these errors
are driving me crazy. And I hope other people may have already
experienced these problems so that they could give me good suggestions.
Sorry if I'm completely out of topic.
Well let's go...
I'm writing a
2008 Jul 05
3
Editing the "..." argument
Dear all,
I'd like tweaking the ... arguments that one user can pass in my
function for fitting a model. More precisely, my objective function is
(really) problematic to optimize using the "optim" function.
Consequently, I'd like to add in the "control" argument of the latter
function a "ndeps = rep(something, #par)" and/or "parscale =
2009 Oct 10
2
Possible bug in the Rd parser?
Dear list,
I got an automatic email complaining than some of my packages didn't
pass 'R CMD check' for R-2.10.0 alpha anymore. Both of them make use of
the "cases" LaTeX environment.
Inspecting the log outputs I got:
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! Misplaced alignment tab
2008 Apr 14
0
Incorrect @INC: Rcmd SHLIB error under Windows (2.6.2, 44383) (PR#11165)
Has your environment variable path been set correctly?
It's been a while that I'm not using R under windows but remember had
experienced the same error. I remember that I had to put many paths as
environment variable to build R packages properly.
Best,
Mathieu
wolpert at stat.duke.edu a ?crit :
> Hi, R team.
>
> I'm trying to build a dll from a c program to be invoked
2010 Apr 20
1
zero sized messages in Maildir, corrupt filenames ?
Hi,
I'm starting to see more and more duplicates in my cur directory. they
seem to be a copy of an incoming mail (messages share the same date) but
they appears in the client as a message without subject and without
sender or body. Their filename starts with an underscore and the 4th
letter is a %. The rest of the filename is random (but it also includes
my hostname). Which program could
2007 Apr 05
0
20% off selected R and S-plus books from Cambridge University Press
Get 20% off selected Cambridge books for the R-help community.
Until the end of June, R-help users can get an exclusive discount on the
following Cambridge University Press books that use R or S-plus! Simply
visit http://www.cambridge.org/rbooks and click the appropriate link to
get more information about the book(s) that interests you. To get your
discount, you will need to click the
2008 Apr 21
4
prod(0, 1:1000) ; 0 * Inf etc
I think most of us would expect prod(0:1000) to return 0, and ...
... it does.
However, many of us also expect
prod(x1, x2) to be equivalent to
prod(c(x1,x2))
the same as we can expect that for min(), max(), sum() and such
members of the "Summary" group.
Consequently, prod(0, 1:1000) should also return 0,
but as you see, it gives NaN which may be a bit puzzling...
The
2006 Aug 06
0
firefox-1.5.0.5-0.el4.1.centos4 and SVG
Hello,
With the updated firefox (and freetype) I can't see svg files:
? This XML file does not appear to have any style information associated
with it. ?
While, if installing firefox 1.5.0 from the official site, svg files
display without trouble.
What could be the reason for that?
Anne
--
Anne Possoz, Domaine IT-GE Espace logiciel libre ? l'Ecole
Ecole Polytechnique
2008 Jun 27
1
Problem in conditional looping
Respected All,
I am writing a program in R and facing some problem with applying "if statment".
Program first draw random numbers from bivariate normal distribution
then compute variable say Pi and Pij from that sample and
then further computation
.....
.....
.....
In some samples Pij is appearing with negitive sign and ultimately
resulted in an negative variance estimator.
2009 Mar 02
1
R does not start on my MacBook Pro3,1 (PR#13565)
Help! I was running R code and started getting error messages that
would not stop repeating. I force-quit R, but when I attempted to run
it again, it would not start (Icon kept bouncing until I force-quit
again). I restarted the computer, then I reinstalled R, but that did
not fix the problem. I deleted everything I could find related to R,
and installed again. Each time I install I
2009 Jun 02
1
How to generate R objects in C?
I'm in the process of coding a parser (in C) to generate R entities
(vectors, lists, etc.) from a text description (different from R).
The basic parser works, and now I need to tell it how to create R
entities. I need to be able to create character vectors (for unicode
strings), integers, floats, unnamed lists, named lists, boolean
values, and NA. With the exception of the two types of lists
1999 Oct 21
1
2.05a Solaris 2.5.1 SPARC -problem-
Hello,
I've sucessfully compiled 2.05a for Solaris 2.6 and its working OK.
Compiling on Solaris 2.5.1 (with gcc or Sun cc) goes smoothly but
smbd fail with the following error in the log:
[1999/10/21 09:45:30, 0] lib/util_sock.c:(507)
read_socket_data: recv failure for 4. Error = Invalid argument
Same debug level 10
[1999/10/21 11:47:03, 2] smbd/server.c:(716)
Changed root to /
1999 Apr 21
1
text works with the postscript device?
Dear R experts,
R (0.63) does not seem to write me any text in a PS file.
Trying
x11()
plot(12)
text(5,5, "Hello World")
works fine.
Now I would like to have the same as a PS file.
postscript("foobar.ps")
plot(12)
text(5,5,"Hello World")
dev.off()
Gives me a PS file with the plot -- but without the
"Hello World".
Why? I'm completely clueless.
Ciao
2009 Feb 08
2
Strange behavior of C compiled program
Hi the list,
I need to include some C code in R, but the behavior of the C code is
strange : Here is my code :
--- 8< ---
Rprintf("\n XXXX mTraj=%f
mClus=%f",mTraj[i+nbId*c],mClustersCenter[j+nbClusters*c]);
Rprintf("\nDistA=%d Tmp=%d",dist,tmp);
tmp = mTraj[i+nbId* c] - mClustersCenter [j+nbClusters* c];
Rprintf("\nDistB=%d
2002 Mar 04
1
Running on MacOS X
Good Morning !
I am trying to run R on MacOS X using XFree86 4.2.0
when I try to run it, I get the following error message
"dyld: /usr/local/lib/R/bin/R.bin version mismatch for library:
/sw/lib/libpng.2.dylib (compatibility version of user: 1.0.12 greater
than library's version: 1.0.10)
".
I hope you have some ideas what the problem is and how I can fix it.
thanks for your
2009 Jan 08
1
legend() in a multiple figure environment
Dear all,
there seems to be a problem with displayed legends when a multiple
figure environment is used, see the following example:
par(mfrow=c(1,2))
curve(dnorm,col=4,from=-4,to=4);
legend(-4,0.3,legend="curve",lty=1,col=4)
legend(-4,0.2,legend="curve",lty=1,col=4)
On my machines the first time the command legend() is issued the
legend box stretches over the curve.
2008 Dec 11
5
package development
I'm making the move of the survival package from my own environment to,
and have stumbled into a vacuum. The R Extensions manual has really nice
instructions about how to lay out the directories, order the files, and
run tests for DISTRIBUTION of a product, but I can't find anything on how
to set up a reasonable DEVELOPMENT environment.
In my local world, I had the .c and .s files in