Yes, but I think of numeric data with non-numeric values (e.g. "." for
missing) as character, not numeric. Missing to me means either empty
or with the missing value code specified as you describe. Ergo my
comment. Your clarification is nevertheless appropriate.
Cheers,
Bert
Bert Gunter
"Data is
> On 27 Sep 2015, at 22:12 , Bert Gunter wrote:
>
>>
>> Due to missing data, R originally classified each X and Y variable as a
>> ‘factor’, subsequently changed to ‘numeric’ via ‘as.numeric’ command.
>
> No.
> a) missing data will not cause numeric data to become factor. There's
> something
I believe you need to spend some time with an R tutorial, as I don't
believe what you understand what factors are and how they should be
used."Dummy variables" are also almost certainly unnecessary and
usually undesirable, as well.
A few comments below may help..
Cheers,
Bert
Bert Gunter
"Data
I doubt that dplyr is the problem. have a look at the output of
str(CSUdata2) The problem is probably in there.
Sending a reproducible example of the problem makes it easier for us to
help you. Note that this list doesn't accept HTML mail. I suggest that you
read the posting guide carefully.
ir.
Hi--I’m new to R. For a dissertation, my panel data is for 48 Sub-Saharan
countries (cross-sectional index=’i’) over 55 years 1960-2014 (time-series
index=’t’). The variables read into R from a text file are levels data. The
2SLS regression due to reverse causality will be based on change in
5 matches
Mail list logo