BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ksn999
Fluorite | Level 6

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

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;


View solution in original post

7 REPLIES 7
Reeza
Super User

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!


 

ksn999
Fluorite | Level 6

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:

Screen Shot 2019-01-23 at 11.15.11 .png

Reeza
Super User
Try changing your STORE line to:

Store out=nfea.vc;
ksn999
Fluorite | Level 6
Thanks Reeza, I’ve already tried that, it doesn’t work. I get the same error message.

Reeza
Super User

Show your full log please.

Reeza
Super User

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;


ksn999
Fluorite | Level 6

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!

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 1328 views
  • 3 likes
  • 2 in conversation