similar to: Extending R formulas

Displaying 20 results from an estimated 4000 matches similar to: "Extending R formulas"

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 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 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
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
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 Apr 14
4
&& and ||
Hello there, I got a small problem about logical calculation: we can get a sequene from a+b as below: > a<-c(1,2) > b<-c(3,4) > a+b [1] 4 6 but when the sequences are logical. (I want to get (True,False) && (True, True) ==> (True, False), but when I do as below. > e<-c(T,T) > f<-c(F,T) > e [1] TRUE TRUE > f [1] FALSE TRUE >
2008 Aug 05
2
Adding .PDF files to a package
Deal all, new as I am to developing packages for R-Project, I apologize on beforehand for questions that are too obvious. I am trying to 'add' a PDF document containing some detailed information to a package. The way I understand the Rexts.pdf document, I should add my .PDF document to the /inst/doc/ folder, and links to the files should be build automatically. However, after
2008 Jul 10
1
package has a loading problem
Hello, I have difficulties in finding why I cannot load a custom R package in Linux (Suse 10). When I run R CMD check for a package source folder I get the following message: "..... Error in dyn.load(file, ...) : unable to load shared library '/home/yarz/projects/Riman/Riman.Rcheck/Riman/libs/Rimanlib.so': /home/yarz/projects/Riman/Riman.Rcheck/Riman/libs/Rimanlib.so: undefined
2010 Jan 22
3
R-2.10.1 : There is no make file. (PR#14192)
Full_Name: N. Srinivasan Version: R-2.10.1 OS: Ubuntu 9.10, 64 bits Submission from: (NULL) (68.110.238.141) ,/configure runs fine. But there is no make file mentioned in the INSTALL file. Usually this kind of information is provided in the README file. I am a donor to the R Foundation. Ubuntu uses the Synaptic. It only installs the R version 2.9.0 So, I have to compile R-2.10.1 from the