turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS Procedures
- /
- Error: "NOTE: The data set WORK.PRED has 0 observa...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-26-2016 04:32 PM

Hello All,

I was trying to see the climate moisture trend over time for combined sites using proc mixed. However, when I tried to model it with the following command than an error occurred. It said **"****NOTE: The data set WORK.PRED has 0 observations and 0 variables.**" I have applied the same model for temperature and it was successful. But not for climate moisture data. Please note that The climate moisture data have both negative and positive value. Can you please help me to solve the problem? Thanks.

```
proc mixed data= import;
class plot;
model cmi = plot plot*year;
run;
proc mixed data=import;
class plot;
model cmi = year / ddfm=kr solution outp=pred;
random int year / type=un subject=plot solution;
run;
proc sort data=pred;
by year;
run;
proc sgplot data=pred;
series y=pred x=year / group=plot;
run;
```

Accepted Solutions

Solution

01-27-2016
06:47 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to sohelsayma

01-27-2016 11:54 AM

All Replies

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to sohelsayma

01-26-2016 07:06 PM

Post your log.

Most likely you'll see that for some reason the PRED dataset wasn't created from PROC MIXED and then it doesn't flow through your process.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Reeza

01-26-2016 07:20 PM

Dear @Reeza,

Thanks for your reply. Please check the attahcment. You can find the log.

Kind Regards

Sohel

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to sohelsayma

01-26-2016 07:29 PM - edited 01-26-2016 07:40 PM

Fix the error in the log before the error you mentioned....

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Reeza

01-26-2016 07:56 PM

Dear @Reeza,

I have checked the input file. Variable plot and Year are available in the input data file. I have attahced the input data file in my post. Still couldnt figure out the problem.

I have checked the input file. Variable plot and Year are available in the input data file. I have attahced the input data file in my post. Still couldnt figure out the problem.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to sohelsayma

01-26-2016 08:00 PM

You noticed your procedure did not converge WARNING?

I don't know your data and you may want to post this under Statistical Procedures, but the issue is the fact that your model doesn't converge. Why? I don't know...check that your model is specified correctly and that you don't have any other issues.

Solution

01-27-2016
06:47 PM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to sohelsayma

01-27-2016 11:54 AM