Displaying 11 results from an estimated 11 matches for "sasdata".
Did you mean:
sa_data
2011 Mar 06
1
read.ssd() from foreign package
Hi, I am encountering a confusing problem when I tried to use read.ssd to read
SAS datasets. For one SAS dataset "a.sas7bdat", it did not work; while for
another SAS dataset "b.sas7bdat" it worked:
> tmp<-read.ssd("C:\\SASdata", "a",sascmd="C:/Program
>Files/SAS/SASFoundation/9.2/sas.exe")
SAS failed. SAS program at
C:\DOCUME~1\yiz01\LOCALS~1\Temp\RtmpVjJa6m\file12384509.sas
The log file will be file12384509.log in the current directory
Warning message:
In read.ssd("C:\\SASdata"...
2011 Mar 12
0
Repeated measures in nlme vs SAS Proc Mixed with AR1 correlation structure
...4,0.34,0.51,1,0.61,0.65,0.41,0.99,0.86,0.64,0.86,0.31,0.19,0.21,0.36,0.41,0.47,0.16,0.81,0.9,0.72,0.87,0.02)
Subject<-c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10)
Day<-c(1,2,4,6,1,2,4,6,1,2,4,6,1,2,4,6,1,2,4,6,1,2,4,6,1,2,4,6,1,2,4,6,1,2,4,6,1,2,4,6)
sasdata<-data.frame(cbind(Response, Subject, Day))
sasdata$Time<-as.factor(sasdata$Day)
AR1<-lme(Response~Time, random=~1|Subject,
correlation=corAR1(form=~as.numeric(Time)|Subject, fixed =FALSE),
data=sasdata, na.action = (na.omit), method = "REML")
AR1
SAS Code:
proc mixed;
class S...
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:
SAS failed. SAS program at C:\DOCUME~1\Temp\RtmpcTlKtb...
2018 Jul 04
1
R is creating a new level which is emty after importing a SAS file
Hi,
I have imported some sasdata into R using the sas7bdat package. I have some nominal variables with some missing values.
R is creating a new level which is emty ??.When I ask for tabulate this new level is presented with 0 as a frequency.
I want to get rid of this level and have my file imported correctly.
Do you have some h...
2018 Jul 04
1
R is creating a new level which is emty after importing a SAS file
Hi,
I have imported some sasdata into R using the sas7bdat package. I have some nominal variables with some missing values.
R is creating a new level which is emty ??.When I ask for tabulate this new level is presented with 0 as a frequency.
I want to get rid of this level and have my file imported correctly.
Do you have some h...
2018 Apr 14
1
Fwd: Re: Reading xpt files into R
..._PRO 16SEP09:09:39:2516SEP09:09:39:25 HEADER RECORD*******MEMBER HEADER RECORD!!!!!!!000000000000000001600000000140 HEADER RECORD*******DSCRPTR HEADER RECORD!!!!!!!000000000000000000000000000000 SAS DEMO SASDATA 9.2 XP_PRO 16SEP09:09:39:2516SEP09:09:39:25 HEADER RECORD*******NAMESTR HEADER RECORD!!!!!!!000000014400000000000000000000 SEQN Respondent sequence number
So the header is text, but it is text with a...
2018 Jul 04
0
[R] R is creating a new level which is emty after importing a SAS file
..., droplevels() is your friend. (Notice that it easier to remove levels that you do not want than to insert levels that have been unwantedly deleted on input.)
-pd
> On 4 Jul 2018, at 19:16 , Adam Z. Jabir <Adam.Z.Jabir at outlook.fr> wrote:
>
> Hi,
>
> I have imported some sasdata into R using the sas7bdat package. I have some nominal variables with some missing values.
>
> R is creating a new level which is emty ?.When I ask for tabulate this new level is presented with 0 as a frequency.
>
> I want to get rid of this level and have my file imported correctly....
2009 Jun 25
0
lme gives different results to SAS Proc Mixed
...or covariance structure I'm using the simple compound symmetry.
The SAS code I'm using is:
Proc mixed ;
class dose day animal ;
model blood=dose|day / htype=1,3;
repeated day / subject = animal type = cs;
run;
and the lme code is
testmain<-lme(blood~dose*day, random=~1|animal, data=sasdata, na.action =
(na.omit))
anova(testmain)
The overall test of the fixed effects agree as expected, but when I tried
Blood2 (which has missing data) only the Day*Dose interaction agrees. I
tried sequential and marginal options in the anove.lme code but to no
effect. I suspect this is something to do...
2018 Apr 13
0
Reading xpt files into R
..._PRO 16SEP09:09:39:2516SEP09:09:39:25 HEADER RECORD*******MEMBER HEADER RECORD!!!!!!!000000000000000001600000000140 HEADER RECORD*******DSCRPTR HEADER RECORD!!!!!!!000000000000000000000000000000 SAS DEMO SASDATA 9.2 XP_PRO 16SEP09:09:39:2516SEP09:09:39:25 HEADER RECORD*******NAMESTR HEADER RECORD!!!!!!!000000014400000000000000000000 SEQN Respondent sequence number
You can look at the...
2018 Apr 13
5
Reading xpt files into R
Hello R folk
I have an xpt file which I have been trying to open into R in R studio
On the net I found guidance which says that I need packages Hmisc and SASxport which I have successfully loaded.
I had also found some code which says that this would allow me to read the xpt file into R:
library(SASxport)
data(Alfalfa)
lookup.xport("test.xpt")
2018 Apr 14
0
Fwd: Re: Reading xpt files into R
-------- Original Message ----------
From: WRAY NICHOLAS <nicholas.wray at ntlworld.com>
To: peter dalgaard <pdalgd at gmail.com>
Date: 14 April 2018 at 20:18
Subject: Re: [R] Reading xpt files into R
Well yesterday I'd downloaded the "foreign" package and tried to open the xpt file using that:
library(foreign)
read.xport("test.xpt")
I got the following