Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: age: factor variables may not contain noninteger values


From   Lars Folkestad <lfolkestad@health.sdu.dk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: age: factor variables may not contain noninteger values
Date   Tue, 8 Nov 2011 11:13:34 +0100

Dear List

I am trying to investigate the interactions between age and a grouping variable in a regression model, using this code:

xi: regress Var1 age##i.group

Var1: is a continuous variable
Age: is a continous variable / float

When i run the code i get the following error message:
age:  factor variables may not contain noninteger values

My question: what am i doing wrong and can i my float variable (age) to a integer variable?

Thank You
Lars

Using: Stata 11.2 on a Mac OSX system.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index