Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: age: factor variables may not contain noninteger values


From   Lars Folkestad <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index