Hi all,
I can't get the Store command to work in SAS University Edition. I get the error message that the file ' NEFA.vc' does not exist or is not a valid item store when I try to use my stored data in the proc plm procedure. I have tried everything I can think of, creating a new library (NEFA), changing the dataset location, using an 'out=' under the store statement, etc. I can't find any resources with a solution online so thought I would post my question here. My code is as follows:
libname NEFA '/folders/myfolders/';
data NEFA.revisions;
set revisions;
run;
proc mixed data=NEFA.revisions;
class condition time Subject_ID;
model glucose=condition time time*condition / ddfm=Kenwardroger;
random Subject_ID;
repeated condition / subject=Subject_ID rcorr;
store NEFA.vc;
run;
proc plm source=NEFA.vc;
lsmeans condition / adjust=tukey lines plot=meanplot;
run;
Any help would be much appreciated! Thanks!
This was as close as I could get to your question, without data and finding fake data.
The only thing missing is the RANDOM portion.
Does this work for you in SAS UE?
data pr;
input Person Gender $ y1 y2 y3 y4;
y=y1; Age=8; output;
y=y2; Age=10; output;
y=y3; Age=12; output;
y=y4; Age=14; output;
drop y1-y4;
datalines;
1 F 21.0 20.0 21.5 23.0
2 F 21.0 21.5 24.0 25.5
3 F 20.5 24.0 24.5 26.0
4 F 23.5 24.5 25.0 26.5
5 F 21.5 23.0 22.5 23.5
6 F 20.0 21.0 21.0 22.5
7 F 21.5 22.5 23.0 25.0
8 F 23.0 23.0 23.5 24.0
9 F 20.0 21.0 22.0 21.5
10 F 16.5 19.0 19.0 19.5
11 F 24.5 25.0 28.0 28.0
12 M 26.0 25.0 29.0 31.0
13 M 21.5 22.5 23.0 26.5
14 M 23.0 22.5 24.0 27.5
15 M 25.5 27.5 26.5 27.0
16 M 20.0 23.5 22.5 26.0
17 M 24.5 25.5 27.0 28.5
18 M 22.0 22.0 24.5 26.5
19 M 24.0 21.5 24.5 25.5
20 M 23.0 20.5 31.0 26.0
21 M 27.5 28.0 31.0 31.5
22 M 23.0 23.0 23.5 25.0
23 M 21.5 23.5 24.0 28.0
24 M 17.0 24.5 26.0 29.5
25 M 22.5 25.5 25.5 26.0
26 M 23.0 24.5 26.0 30.0
27 M 22.0 21.5 23.5 25.0
;
proc mixed data=pr method=ml covtest;
class Person Gender;
model y = Gender Age Gender*Age / s ddfm=kenwardroger;
repeated / type=un subject=Person r;
store out=myDemo;
run;
proc plm source=myDemo;
lsmeans gender / adjust = tukey lines plot=meanplot;
run;
Can you run a PROC CONTENTS right after your first data step, check what is in your data set. Post the output here if you need to.
data NEFA.revisions;
set revisions;
run;
proc contents data=nefa.revisions;
run;
@ksn999 wrote:
Hi all,
I can't get the Store command to work in SAS University Edition. I get the error message that the file ' NEFA.vc' does not exist or is not a valid item store when I try to use my stored data in the proc plm procedure. I have tried everything I can think of, creating a new library (NEFA), changing the dataset location, using an 'out=' under the store statement, etc. I can't find any resources with a solution online so thought I would post my question here. My code is as follows:
libname NEFA '/folders/myfolders/';
data NEFA.revisions;
set revisions;
run;
proc mixed data=NEFA.revisions;
class condition time Subject_ID;
model glucose=condition time time*condition / ddfm=Kenwardroger;
random Subject_ID;
repeated condition / subject=Subject_ID rcorr;
store NEFA.vc;
run;
proc plm source=NEFA.vc;
lsmeans condition / adjust=tukey lines plot=meanplot;
run;
Any help would be much appreciated! Thanks!
Proc contents works just fine. Everything works perfectly except the store command. I get output from the proc mixed procedure, but then proc plm can't use the output. Here is a screenshot of the proc contents output:
Show your full log please.
This was as close as I could get to your question, without data and finding fake data.
The only thing missing is the RANDOM portion.
Does this work for you in SAS UE?
data pr;
input Person Gender $ y1 y2 y3 y4;
y=y1; Age=8; output;
y=y2; Age=10; output;
y=y3; Age=12; output;
y=y4; Age=14; output;
drop y1-y4;
datalines;
1 F 21.0 20.0 21.5 23.0
2 F 21.0 21.5 24.0 25.5
3 F 20.5 24.0 24.5 26.0
4 F 23.5 24.5 25.0 26.5
5 F 21.5 23.0 22.5 23.5
6 F 20.0 21.0 21.0 22.5
7 F 21.5 22.5 23.0 25.0
8 F 23.0 23.0 23.5 24.0
9 F 20.0 21.0 22.0 21.5
10 F 16.5 19.0 19.0 19.5
11 F 24.5 25.0 28.0 28.0
12 M 26.0 25.0 29.0 31.0
13 M 21.5 22.5 23.0 26.5
14 M 23.0 22.5 24.0 27.5
15 M 25.5 27.5 26.5 27.0
16 M 20.0 23.5 22.5 26.0
17 M 24.5 25.5 27.0 28.5
18 M 22.0 22.0 24.5 26.5
19 M 24.0 21.5 24.5 25.5
20 M 23.0 20.5 31.0 26.0
21 M 27.5 28.0 31.0 31.5
22 M 23.0 23.0 23.5 25.0
23 M 21.5 23.5 24.0 28.0
24 M 17.0 24.5 26.0 29.5
25 M 22.5 25.5 25.5 26.0
26 M 23.0 24.5 26.0 30.0
27 M 22.0 21.5 23.5 25.0
;
proc mixed data=pr method=ml covtest;
class Person Gender;
model y = Gender Age Gender*Age / s ddfm=kenwardroger;
repeated / type=un subject=Person r;
store out=myDemo;
run;
proc plm source=myDemo;
lsmeans gender / adjust = tukey lines plot=meanplot;
run;
Hey Reeza,
Sorry for the delay in responding, I've been in meetings. Yes, I can run the code you posted perfectly. I was about to copy over the logbook and attach it here when I realized the logbook said that the model failed to converge and so deleted the output file, which I think is the answer to the problem I've been having! Anyways, thanks again!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.