Re: [R] R learning

2012-05-30 Thread Nicole Marie Ford
these are two great books that helped me significantly. Verzani, John. 2004. Using R for Introductory Statistics. Chapman & Hall/CRC. (here- after JV) Errata: http://wiener.math.csi.cuny.edu/UsingR/Errata/ John Fox and Sanford Weisberg. An R Companion to Applied Regression. Sage Publications, T

Re: [R] Loading Dataset into R continual issue

2012-03-21 Thread Nicole Marie Ford
just a guess but does it know where to look for the variable? has the data been specified? i am not seeing any of the previous messages in this thread so forgive me if this has been mentioned. that error means it has no idea where to find the dependent variable 'Pat2006'. ~nicole - Ori

Re: [R] problem with effects : 'subscript out of bounds'

2012-03-09 Thread Nicole Marie Ford
if that is not specific (or not general) enough: newDV <- dat$DV ## newDV is my DV & it is continuous. newDV <- as.numeric(newDV)-5 str(newDV) (i had to do a great deal of coding here so i am snipping down to the end) tmp[which(dat$v1 == "stuff" & dat$v2 == "more stuff")] <- "lots of stuff"

[R] problem with effects : 'subscript out of bounds'

2012-03-09 Thread Nicole Marie Ford
hello. help with effects plots. here's the last bit of code before running the model and then the effects, then the error. nor.dem <- norway$v162 ## nor.dem is my DV & it is continuous. nor.dem <- as.numeric(nor.dem)-5 str(nor.dem) (i had to do a great deal of coding here so i am snipping dow

Re: [R] pulling out 1 country and 1 wave

2012-03-06 Thread Nicole Marie Ford
> dim(norway) thanks, nicole. =)) does this help you help me, any?? from here i need to pull out the country 'norway' which is in the dataset as variable 'v218'. ----- Original Message - From: "Petr PIKAL" To: "Nicole Marie Ford" Cc: &quo

Re: [R] pulling out 1 country and 1 wave

2012-03-06 Thread Nicole Marie Ford
sorry here is the .tiff - Original Message - From: "Nicole Marie Ford" To: "r-help" Sent: Tuesday, March 6, 2012 11:08:43 PM Subject: pulling out 1 country and 1 wave Hello. I am trying to pull out one country from a time series of 5 waves. For example I need

Re: [R] pulling out 1 country and 1 wave

2012-03-06 Thread Nicole Marie Ford
I have done the following to pull out the wave but now need to pull out the country form there... but I am not sure how to do that without messing it up? wvs.a[,362] table(wvs.a[,362]) norway <- wvs.a[which(wvs.a[,362] == "2005"), ] dim(norway) - Original Message - From:

[R] pulling out 1 country and 1 wave

2012-03-06 Thread Nicole Marie Ford
Hello. I am trying to pull out one country from a time series of 5 waves. For example I need Norway from the 5th wave. This is new to me. Typically, I work with country specific surveys. data = norway I have attached a .tiff of the codebook showing the variable names for Norway and the wa

[R] question about ... questions/ code

2012-01-29 Thread Nicole Marie Ford
Hello, I have a dataset which I am calling RB09. I am trying to match the questions in the code book with variable codes. It is not very intuitive. example: names(RB09) [1] "ea1""eaf1" "eaf1a" "eaf2" "eaf2_7" [6] "eaf3" "eafimpun" "eafunpun" "evi

[R] replacement has 13665 rows, data has 13664

2011-12-19 Thread Nicole Marie Ford
Hello, all. I have come across a problem. Previously, when I recoded my DV, added the variable to my dataset and ran the multinom, I was just fine. But I am doing it again and I am getting this error. R> Poland$trust <- trust Error in `$<-.data.frame`(`*tmp*`, "trust", value = c(NA, NA, NA, N

Re: [R] removing contractions for recode in car

2011-12-16 Thread Nicole Marie Ford
I see the problem. So Sorry. - Original Message - From: "Nicole Marie Ford" To: "John Fox" Cc: r-help@r-project.org Sent: Friday, December 16, 2011 11:54:36 AM Subject: Re: [R] removing contractions for recode in car Hello, all. I am encountering a new pro

Re: [R] removing contractions for recode in car

2011-12-16 Thread Nicole Marie Ford
12443 83 545 Neither Agree nor Disagree DisagreeCant choose 306183 29 Can't choose NO ANSWER

Re: [R] removing contractions for recode in car

2011-12-15 Thread Nicole Marie Ford
n Fox" To: "Nicole Marie Ford" Cc: r-help@r-project.org Sent: Thursday, December 15, 2011 3:16:58 PM Subject: Re: [R] removing contractions for recode in car Dear Nicole, On Thu, 15 Dec 2011 14:49:04 -0600 (CST) Nicole Marie Ford wrote: > hello, > > i need to r

[R] removing contractions for recode in car

2011-12-15 Thread Nicole Marie Ford
hello, i need to recode a variable, however the contraction is causing problems. i had the code to change this written down somewhere and i just can't find it, of course. i am using the car library to recode. it's only 5 levels when it should have 6... when i do levels(trust). here is my rec

Re: [R] 2^k*r experimental design and anova

2011-11-10 Thread Nicole Marie Ford
Sounds like you are hypotesis testing. you can try "an R companion to applied regression" 2nd edition 2011 by john fox and sanford weisberg. effects package does interactions quite well. - Original Message - From: "Giovanni Azua" To: r-help@r-project.org Sent: Thursday, November 10, 2