Skip to content
Prev 370061 / 398503 Next

Help please

Hi Rabby,
Before you run your regression, try this:

is.factor(Final$Cor)

If this returns TRUE, then this variable is a factor and it will be
treated as a number of levels rather than a set of numeric values.
This usually happens when a text file is read in and there is at least
one value that cannot be converted to numeric. So if you are doing
something like this:

Final<-read.csv("Final.csv")

Try this:

Final<-read.csv("Final.csv",stringsAsFactors=FALSE)
Final$Cor<-as.numeric(Final$Cor)

If there is at least one NA value in Final$Cor, that is probably what
is causing your problem.

Jim
On Mon, Jun 26, 2017 at 9:38 AM, Sarpong, Rabby <es927716 at ohio.edu> wrote:
Message-ID: <CA+8X3fUKN9_C0uGuc3==moaNmkK4AzpAX67-zF6jaFJ_OJ3PMg@mail.gmail.com>
In-Reply-To: <DM5PR01MB3306D8C5D1D69EB4B4AE5F19BBDE0@DM5PR01MB3306.prod.exchangelabs.com>