- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi there my SAS friends:
Im running this data:
These are the raw numbers used for this graph. Average IQs for countries are from Lynn, Harvey, and Nyborg (2009) Intelligence, Volume 37, pages 11-15 (article link). Average IQs for US states are from McDaniel (2006) Intelligence, Volume 34, pages 607-619 (article link). Religious percentage for both countries and US states from Diener, Tay, and Myers (2011 August 1) Journal of Personality and Social Psychology (article link).
file with full data is adjunt.
so in the LOG file says:
ERROR: Variable Country in list does not match type prescribed for this list.
Any suggestions?? is so easy to run, but this ERROR is making me crazy
Thanks
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
What are you expecting VAR statement to do?
Given that the name is COUNTRY my guess is that it's a character variable and the documentation states that variables in the VAR statement should be numeric
VAR Statement |
- VAR variables ;
The VAR statement is used to include numeric variables in the crossproducts matrix that are not specified in the first MODEL statement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
What are you expecting VAR statement to do?
Given that the name is COUNTRY my guess is that it's a character variable and the documentation states that variables in the VAR statement should be numeric
VAR Statement |
- VAR variables ;
The VAR statement is used to include numeric variables in the crossproducts matrix that are not specified in the first MODEL statement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It would be my guess based, on a brief read of the article, that you'd want to include Country as a class variable and then use proc glm to fit the model, including country as a fixed effect on the model statement.