Displaying 20 results from an estimated 10000 matches similar to: "Call SAS from R"
2005 Aug 24
0
summary: Call SAS from R
Thanks for all the insightful responses that help me solve my problem.
The original question is: how to call SAS from R
The solution is as below:
If my sas code, test.sas, is in directory c:\ncme06\sas codes, then the
following codes works
> system('"c:\\program files\\sas institute\\sas\\v8\\sas.exe"
"c:\\ncme06\\sas codes\\test"')
Things to notice:
1. need a
2004 Aug 27
1
Plotting irregular grid as image or persp
Hi,
I have an array of 2d node locations and an array triangles, and would
like to plot something like a image or persp.
An example of doing it with rgl is:
library(ncdf)
library(rgl)
# wget http://www.maplepark.com/~drf5n/extras/teapot.nc
teapot<-open.ncdf("teapot.nc")
z<-get.var.ncdf(teapot,"tris")
l<-get.var.ncdf(teapot,"locations")
2007 May 04
1
Partitioning a kde2d into equal probability areas
Hi,
I'd like to partition a 2d probability density function into regions of
equal probability. It is straightforward in the 1d case, like
qnorm(seq(0,1,length=5)) but for 2d I'd need more constraints.
Any suggestions for how to approach this? Is seems like a spatial
sampling problem but I'm not sure where to look.
Thanks for your time,
Dave
--
Dr. David Forrest
drf at
2005 Jun 06
9
R Graph Gallery : categorization of the graphs
Hello all,
It seems that the next improvement to the R Graph Gallery is
categorization of the graphics, that way each graph will be easier to
find. That step should be done *carefully* if we want to avoid the
opposite side-effect : graph not reachable through the categories.
That's why the wisdom of the R community is required.
Graphics will be classified in :
- categories
-
2003 Jul 11
3
postscript/eps label clipping
The following code produces an eps file with the tops of each of the ylabs
clipped off.
par(mfrow=c(2,2))
plot(runif(10),
ylab="Function(Lengthy Expression)",xlab="Prediction")
plot(runif(10),
ylab=expression(Delta * Beta^2),xlab="Prediction")
plot(runif(10),
ylab="Function(Lengthy Expression)",xlab="Prediction")
2008 Jul 18
2
column wise paste of data.frames
Hi everybody!
I'm sure that I overlook something and feel quite stupid to ask, but I
have not found an easy solution to the following problem: Take e.g. the
Orthodont data from the nlme package:
> head(Orthodont)
Grouped Data: distance ~ age | Subject
distance age Subject Sex
1 26.0 8 M01 Male
2 25.0 10 M01 Male
3 29.0 12 M01 Male
4 31.0 14 M01 Male
2004 Dec 08
2
what about a mascot ?
My friend Veslot proposed me the Raven !
http://www.teteamodeler.com/allopass/images/corbeau.jpg
As a matter of fact the intelligence of this bird is
comparable to one of a monkey, although its brain is close to
a reptile brain. R is quite the same : small, compact, but so
clever.
This is a canadian website explaining (in french) the R-aven
intelligence
2007 Mar 12
3
reading BMP into R
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070312/112cd7f9/attachment.pl
2007 Mar 27
1
Using nnet
I have a problem when using nnet to predict the negative values. For example
:
X = matrix(c(1,1,0,0,1,0,1,0),4,2)
X
Y = matrix(c(0,1,1,0)) - 0.5 # XOR - 0.5
Y
nn = nnet(X,Y,size=3)
val = predict(nn,X)
val # this is expected to be close to Y, but it's not !
The 'val' is always positive. I tried to change the options, but the result
isn't much better.
Could someone give me an
2005 Apr 01
2
(no answer)
I wish to perform brain surgery this afternoon at 4pm and don't know
where to start. My background is the history of great statistician
sports legends but I am willing to learn. I know there are courses and
numerous books on brain surgery but I don't have the time for those.
Please direct me to the appropriate HowTos, and be on standby for
solving any problem I may encounter while
2007 Apr 24
5
Random Number Generator of Park and Miller
Hi,
I failed to search for R package providing random number generator of "Park
and Miller".
Anyone know any R package supporting this kind of function?
Thanks,
Grace
--
View this message in context: http://www.nabble.com/Random-Number-Generator-of-Park-and-Miller-tf3636501.html#a10154554
Sent from the R help mailing list archive at Nabble.com.
2008 Mar 14
2
SAS data
Hello,
I am trying to read the SAS file MyData.sa7bdat in R! This file is saved under D:\data! I therefore wrote
> path <-"D:/SasData"
> sashome <- "C/Progra, Files/SAS Institute/9_1/SAS"
> sascmd <- file.path(sashome, "sas.exe")
> MyData <- read.ssd(path, "MyData", sascmd=sascmd)
The results what I get:
2004 Dec 09
3
US 2004 Elections map
even for people who didn't like the outcome of the US elections this
year, it must have been a joy to see all the nice (and not so nice)
graphs that were shown. As an exercise, I recreated the map shown on
the NY-Times website [
http://www.nytimes.com/packages/khtml/2004/11/03/politics/
20041103_px_ELECT_GRAPHIC.html ]
If you're interested,
2009 Oct 20
2
Problems importing Unix SAS .ssd04 file to R (Win)
Hello,
I'm trying to import a SAS file made using SAS on Unix. Currently I'm
using SAS on Windows and I'm trying to import that .ssd04 file to R.
The file name of the file is testfile.ssd04 and it is located in
'M:\sasuser'. I'm using Windows XP and R 2.91. Basically what I'm
doing is
############ r code ##############
> library(foreign)
> sashome <-
2005 Mar 22
1
sub('^','var',1:3) produces unexpected results
Hi,
According to help(sub), the ^ should match the zero-length string at the
beginning of a string:
sub('^','var',1:3) # "1" "2" "3"
sub('$','var',1:3) # "1var" "2var" "3var"
# This generates what I expected from the first case:
sub('^.','var',11:13) # "var1" "var2"
2011 Jan 17
2
matrix manipulations
Hi,
I am having some difficulties with matrix operations. It is a little hard to explain it so please bear with me. I have a very large data set, large enough that it needs to be split in parts in order to deal with. I can work things on these "parts" but the problem lies in adding together these parts for the final answer.
So that been said, let's say that i split the data in 2
2005 Nov 09
8
Element-by-element multiplication operator?
Is there an element-by-element multiplication in R, like the .* operator in Matlab?
eg: A (2x3)
B (2x3)
C=A.*B
C (2x3)
C = [[a11*b11 a12*b12 a13*b13]; [a21*b21 a22*b22 a23*b23]]
I can't find one...
Thanks
-Mike Gates
2004 Nov 19
5
help! a urgent question
Dear Sir/Madam,
I am doing a project related to R.
However, it is always difficult find some R functions.
The R user guide seems not complete.
Is there any free document about all R functions ?
Who knows ? please help me.
My email is myzhaogong@yahoo.com
Thank you very much
---------------------------------
[[alternative HTML version deleted]]
2006 Sep 18
8
acos(0.5) == pi/3 FALSE
Hello,
I don't know if the result of
acos(0.5) == pi/3
is a bug or not. It looks strange to me.
Inaki Murillo
2005 Oct 25
1
file size limit for importing SAS file
Does anyone know if there is a file size limit for inputting a SAS data
set? The file size I am trying to import is 184 MB.
The code is:
>library("foreign")
>
> sashome<-"C:/Program Files/SAS Institute/SAS/V8"
> input.data<-read.ssd( file.path("G:/DATA/Cam/ECPATH/FIM"),"tbm_c",
+ sascmd=file.path(sashome,"sas.exe")