I'm running a logistic regression model in R. I've used both the Zelig and Car
packages. However, I'm wondering if there is a simple way to get the model fit
statistics for the model. (pseudo R-square, chi-square, log liklihood,etc)
Thanks
___
I'm running a logit model using the zelig package in R:
z.out <- zelig(trade961a ~ age962 + education962 + personal962 + economy962 +
partisan962 + employment962 + union962 + home962 + market962 + race962 +
income962, data=data96, model="logit")
The dependent variable, trade961a, is a dichoto
I'm running a multinomial logit in R using the Zelig packages. According to
str(trade962a), my dependent variable is a factor with three levels. When I run
the multinomial logit I get an error message. However, when I run 'model=logit'
it works fine. any ideas on whats wrong?
## MULTINOMIAL L
I'm 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=data
I'm recoding variables and running a logit. Unfortunately, I get the following
error.
data04$V043114
part <- data04$V043114
attributes(part)
summary(part)
partb < part
partb[part %in% levels(part)[4]] <- NA
partb[part %in% levels(part)[5]] <- NA
partb[part %in% levels(part)[6]] <- NA
partb[p
I ran the follow code for an ordered logit, but don't know why two levels of my
dependent variable are at the topic of my list of variables.
I don't know why this appears, and what I'm supposed to take from them
y>=0. Haven't thought much about this
y>=1. Favor
library(Design)
two <- lrm(
I'm trying to run an ordered logistic regression model. I've run the following
code, but the output does not provide the p-values. Is there some command to
include the p-values in the output.
reg2 <- polr(trade1 ~ age2 + education2 + personal2 + economy2 + partisan2 +
employment2 + union2 +
vent thought 0 1 0
oppose 0 0 2
> table(x,xo)
xo
xoppose havent thought favor
favor 0 0 2
havent thought 0 1 0
oppose 2
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(data
I'm 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(da
VAR 980490
Some people have suggested placing new limits on foreign
imports in order to protect American jobs. Others say
that such limits would raise consumer prices and hurt
American exports.
Do you FAVOR or OPPOSE placing new limits on imports, or
haven't you thought much about this?
I'm an R newbie and had a question about the read.xls function. I've heard that
this is often not a reliable function to use for importing data. However, I
have created numerous xls files which contain information about voter turnout
and macroeconomic indicators in India. I'm writing a paper on
I have been using R and Tinn-R for the last few weeks. While I prefer Tinn-R to
Emacs as my text editor, I have been unable to calibrate Tinn-R so that the R
outputs will be translated into Tinn R.
For example, if I create a data vecor entitled "I like pizza"<- c(1,2,3)" and
then insert the f
13 matches
Mail list logo