search for: data96

Displaying 6 results from an estimated 6 matches for "data96".

Did you mean: data16
2010 Feb 03
1
Changing an unordered factor into an ordered factor
I'm trying to change an unordered factor into an ordered factor: data96$RV961327 <- data96$V961327 data96$RV961327[data96$V961327 %in% levels(data96$V961327)[4]] <- NA data96$RV961327[data96$V961327 %in% levels(data96$V961327)[5]] <- NA data96$RV961327 <- factor(data96$RV961327) attributes(data96$RV961327) levels(data96$RV961327) data96$RV961327 data96$RR...
2010 Jan 31
1
Running a Logit Model in R
...an R newbie and had the following question. I'm trying to run a logit model because I have a dependant variable that is a factor with three levels. Each of my independent variables are factor variables and have two or more levels, which is why I'm unsure about the error. regone <- glm(data96$RV961327 ~ data96$RV960605 + data96$RV960610 + data96$RV960337 + data96$RV960385 + data96$RV960417 + data96$RV960615 + data96$RV960698 + data96 $RV960714 + data96$RV961145 + data96$RV960067 + data96$RV960702, family=binomial(logit)) This produces the following error. Error in `contrasts&...
2010 Jan 28
1
Recoding Variables in R
...public opinion question from the ANES. I would like to throw out 8 and 9. Furthermore, I would like to reorder the responses so that: 1. Oppose (originally 5) 2. Haven't though much about this (originally 0) 3. favor (originally 1) I tried the following, which did not work: library(car) data96$V961327 <- recode(data96$V961327, "c(1)=2; c(2)=3; c(3)=1") I also tried the following, which also did not work: new <- as.numeric(data96$V961327) new data96$V961327 <- recode(new, "c(5)=1; c(0)=2; c(1)=3") Help, Abraham M
2010 Mar 29
1
Question about 'logit' and 'mlogit' in Zelig
...ver, when I run 'model=logit' it works fine. any ideas on whats wrong? ## MULTINOMIAL LOGIT anes96two <- zelig(trade962a ~ age962 + education962 + personal962 + economy962 + partisan962 + employment962 + union962 + home962 + market962 + race962 + income962, model="logit", data=data96) summary(anes96two) #Error in attr(tt, "depFactors")$depFactorVar : # $ operator is invalid for atomic vectors ## LOGIT Call: zelig(formula = trade962a ~ age962 + education962 + personal962 + economy962 + partisan962 + employment962 + union962 + home962 + market962 + race962...
2012 May 28
1
Why R order files as 1 10 100 not 1 2 3 ?
...; "data111.flt" "data112.flt" [17] "data113.flt" "data114.flt" "data115.flt" "data116.flt" . . to . . [357] "data91.flt" "data92.flt" "data93.flt" "data94.flt" [361] "data95.flt" "data96.flt" "data97.flt" "data98.flt" [365] "data99.flt" which will lead to wrong results. How to tell R to start reading from 1 to 365 in order. something like : [1] "data1.flt" "data2.flt" "data3.flt" "data4.flt" not like...
2010 Mar 24
0
Zelig: Error message for 'mlogit'
...running a multinomial logit in R using the Zelig package. However I get the following error. HELP anes96two <- zelig(trade962a ~ age962 + education962 + personal962 + economy962 + partisan962 + employment962 + union962 + home962 + market962 + race962 + income962, model="mlogit", data=data96) #Error in attr(tt, "depFactors")$depFactorVar : # $ operator is invalid for atomic vectors