Or use stat-transfer to first transform the data properly. It's on all the
lab computers I think.
-----Original Message-----
From: gov2001-l-bounces at
lists.fas.harvard.edu [mailto:gov2001-l-
bounces at
lists.fas.harvard.edu] On Behalf Of Sean Li
Sent: Wednesday, April 23, 2008 3:08 AM
To: gov2001-l at
lists.fas.harvard.edu
Subject: Re: [gov2001-l] "de-factorizing" data from Penn World Tables
What kind of data file are you working with, and what function are you
using to import the data?
If you're using a function like read.table or read.csv, make sure to
set the argument "stringsAsFactors = FALSE".
Sean
On Wed, Apr 23, 2008 at 3:03 AM, Brett Logan Carter
<blcarter at fas.harvard.edu> wrote:
Hi everyone,
Quick question: I downloaded continuous data from the Penn World
Tables, but
R treats the observations as
"factorized" or categorical within a
variable.
Consequently, I'm not able to include the
variables in regressions; R
essentially treats each observation within these variables as
dummies. I've
attempted to correct the problem with as.numeric,
as.data.frame, and
as.matrix commands, but have not been successful.
Any thoughts? Thanks in advance,
Brett
_______________________________________________
gov2001-l mailing list
gov2001-l at
lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l
_______________________________________________
gov2001-l mailing list
gov2001-l at
lists.fas.harvard.edu
http://lists.fas.harvard.edu/mailman/listinfo/gov2001-l