Programming the statistical procedures from SAS

Log problem PROC REG

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 103
Accepted Solution

Log problem PROC REG

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


SAS.png
Attachment

Accepted Solutions
Solution
‎02-11-2015 12:43 PM
Super User
Posts: 18,488

Re: Log problem PROC REG

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.

View solution in original post


All Replies
Solution
‎02-11-2015 12:43 PM
Super User
Posts: 18,488

Re: Log problem PROC REG

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.

Contributor
Posts: 57

Re: Log problem PROC REG

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.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 533 views
  • 3 likes
  • 3 in conversation