similar to: How to bring an Splus object into R

Displaying 20 results from an estimated 6000 matches similar to: "How to bring an Splus object into R"

2004 Sep 09
3
Dyn.load of sharing object with GSL library
Following the recommendation of Prof. Ripley, I have created the Makevars file with the line: PKG_LIBS="-L/usr/lib/libm -lm -L/usr/local/lib/libgsl -lgsl -L/usr/local/lib /libgslcblas -lgslcblas" in the working directory. Now I have the code file Example3.c which computes the Bessel function value (the example is taken from the GSL reference book). I am running: R CMD SHLIB Example3.c
2004 Jul 12
0
Where does R search when source() ?
I have found the use of save( ) and attach( ) when supported by a pair of functions written by my colleague John Miyamoto, move( ) and rm.sv( ) quite useful in managing (1) collections of useful homebrew functions, (2) project workspaces, and (3) "packages" under development. An .Rdata file containing these and other handy functions together with a brief supporting document can be
2005 Mar 16
8
Summing up matrices in a list
Dear all, I think that my question is very simple but I failed to solve it. I have a list which elements are matrices like this: >mylist [[1]] [,1] [,2] [,3] [1,] 1 3 5 [2,] 2 4 6 [[2]] [,1] [,2] [,3] [1,] 7 9 11 [2,] 8 10 12 I'd like to create a matrix M<-mylist[[1]]+mylist[[2]] [,1] [,2] [,3] [1,] 8 12 16 [2,] 10 14 18
2005 Mar 24
2
Bivariate lognormal distribution
Dear experts! Is there a package that enables to create the bivariate log-normal variables? Thanks a lot, Vicky Landsman. [[alternative HTML version deleted]]
2004 Jul 14
1
Running the optimization on the subset of parameters
Dear all, I'd like to find a minimum of (-loglik) function which is a function of k parameters. I'd like to run the minimization algorithm for the different subsets of the parameters and assign the fixed values to the complementary subset. How should I define my (-loglik) function such that it can be passed to the optim or other optimization function? Much thanks for any suggestions.
2005 Mar 24
1
How to stop the minimization when the condition does not hold
Dear experts! I have a minimization problem with non-linear constraint and Objective function(theta)=lambda*(Constr)^2-f(x,theta). Theta is a vector of parameters. I'd like to stop the optimization after the value of the constraint is less or equal some constant value, say d, and save the last computed value of the function. For this purpose, I thought to define the Objective function like
2005 Dec 29
1
Problem Reading SPlus Dump Into R - Spaces Embedded in Data
Hello, I'm trying to source() an SPlus 6.x file created using dump(..., oldStyle=T) into R (version 2.01) as using the following instructions: > *If you have access to S-PLUS, it is usually more reliable to |dump| > the object(s) in S-PLUS and |source| the dumpfile in R. For S-PLUS 5.x > and 6.x you may need to use |dump(..., oldStyle=T)|, and to read in > very large objects
2005 Feb 27
2
Help with constrained optimization
Dear all, I need an advice in the following problem. I have to maximize two functions of the form f1(x)=f(y1,x,alpha1,beta1) and f2(x)=(y2,x,alpha2,beta2), the maximization is with respect to alpha1, alpha2, beta1, beta2. I can maximize each function separately using nlm. The problem is that I have to add the constraint of the form g(alpha1)=g(alpha2). The total number of parameters is
2005 Apr 07
1
ks.test for conditional distribution Y|x
Couldn't you do this by subtracting 0.5 + x from your y values and checking for normality with mean 0 and sd = 1 (using ks.test or another test of normality). If you fail, you'll have to do additional work to find out whether pairs with some particular x value (or range of x values) is causing the problem, but I think this fits the question as stated. Of course, if you have discrete x
2004 Jul 09
1
Example using Rdqags
This is not a direct answer to your question, but if all you want to do is integrate a function numerically, you don't need to be doing it through R. You should be able to find codes that you can use directly, such as quadpack or even GSL. You may want to search on GAMS (Guide to Available Mathematical Software, http://gams.nist.gov/). Andy > From: Victoria Landsman > > Dear all,
2004 Sep 27
1
Numerical two-dimensional integration
Dear all, I need to compute (numerically) the two-dimensional integral: int(int f(x,y)dy)dx. What is the more efficient(fast) way to do it? Is adapt function appropriate for this problem? I will much appreciate your help and attention. Vicky. [[alternative HTML version deleted]]
2004 Oct 12
2
Statistical analysis of a large database
Deall all, We need to perform a statistical analysis of a large database (40,000 entries with approximately 500 fields in each entry) currently handled in Oracle. The data contains categorical variables only. At the current stage we suggest classification and clustering analysis. We are planning to perform the analysis in R and would be very grateful for any
2004 Aug 10
1
Question about mle function
Dear all, I'd like to find the mle esttimates using the mle function mle(negloglik, start = list(), fixed=list(), method="..."). I am using the L-BGFS-B method and I don't supply the gradient function. Is there a way to print the gradients found at the solution value? I am using R-1.9.1 on Windows and on Unix. Thank you in advance, Victoria Landsman. [[alternative
2011 May 30
1
Fwd: Re: Fwd: cgroup OOM killer loop causes system to lockup (possible fix included) - now pinpointed to openssh-server
Just did some testing.. root at vicky:~# cat /var/log/auth.log | grep "Set" May 30 21:41:05 vicky sshd[1568]: Set /proc/self/oom_adj from -17 to -17 May 30 21:41:07 vicky sshd[1574]: Set /proc/self/oom_adj to -17 root at vicky:~# ps faux | grep 1574 root 1574 0.0 0.0 70488 3404 ? Ss 21:41 0:00 \_ sshd: root at pts/1 root at vicky:~# ps faux | grep
2011 Aug 03
2
convert a splus randomforest object to R
Hi, I have a randomforest object "cost.rf" that was created in splus 8.0, now I need to use this trained RF model in R. So in Splus, I dump the RF file as below data.dump("cost.rf", file="cost.rf.txt", oldStyle=T) then in R, restore the dumped file, library(foreign) data.restore("cost.rf.txt") it works fine and able to restore the
2006 Dec 17
0
hblm program: porting from Splus to R
I am replying to the email below my signature; it is nominally about dmp files, but apparently specific to problems with Bill DuMouchel's hblm program. I have been using this program on Splus for years, and ran into some of the same problems Jack did in trying to get it into R. I talked with Bill about it, and he didn't know that there would be any problems; he assumed that R was
2004 Sep 09
1
Adding GSL library path to SHLIB
Dear R-list people, I asked a similar question a few hours before. I will try to be more specific. We like to add the GSL library to the file SHLIB in order to make it possible to run the C code using GSL functions from R. We read that the path to the libgsl.a should be added to the line shlib_libadd=' ' in the file SHLIB but it does not work on our system. Dyn.load fails with error
2006 Jul 03
1
Problem with try()
Dear R-experts, I am running a large simulation exercise where the enough complicated integration is required. The integral is computed within a C-function called Denom by use of function qags from the gsl library. Here is a piece of R-code: denom<-try(.C("Denom",as.double(x),as.integer(n), as.integer(p), as.double(param),
2009 May 26
4
Creating multiple graphs based on one variable
Dear List, I would like to create several graphs of similar data. I have x and y values for several different individuals (in this case fish). I would like to plot the x and y values for each fish separately. I can do it using a for loop, but I think I should be using "apply". Please let me know what I am doing wrong, or if there is a "better" way to do this. What I have
2002 Aug 12
1
AW: add user script going Horribly Wrong (tm)
(Oups! I forgot to send it to the list so everyone could laugh about it. Sorry Vicky for disturbing directly) Good Morning, Vicky! Seems your smb.conf is messed up a little. As I can see you're using security = domain. With this configuration the smbpasswd-file/feature isn't need at all. Authentication is done encrypted with the domain user database, not with the smbpasswd file. The