Re: [R] How to test omitted level from a multiple level factor against overall mean in regression models?

2012-03-25 Thread Biedermann, Jürgen
ürgen Von: Gabor Grothendieck [ggrothendi...@gmail.com] Gesendet: Sonntag, 25. März 2012 14:11 An: Biedermann, Jürgen Cc: r-help@R-project.org Betreff: Re: [R] How to test omitted level from a multiple level factor against overall mean in regression models? 2012/3/25 "Biedermann, Jürgen&quo

[R] How to test omitted level from a multiple level factor against overall mean in regression models?

2012-03-25 Thread Biedermann, Jürgen
Hi there, I have a linear model with one factor having three levels. I want to check if the different levels significantly differ from the overall mean (using contr.sum). However one level (the last) is omitted in the standard procedure. To illustrate this: x <- as.factor(c(1,1,1,2,2,2,2,2,2,3,

[R] logistic regression with glm: cooks distance and dfbetas are different compared to SPSS output

2011-04-29 Thread Biedermann, Jürgen
Hi there, I have the problem, that I'm not able to reproduce the SPSS residual statistics (dfbeta and cook's distance) with a simple binary logistic regression model obtained in R via the glm-function. I tried the following: fit <- glm(y ~ x1 + x2 + x3, data, family=binomial) cooks.distance

Re: [R] How to use the paste function to create an already used variable

2010-03-25 Thread Biedermann, Jürgen
rieb: > I think you are looking for 'assign'. > > On 25/03/2010 09:40, "Biedermann, Jürgen" wrote: > >> Thank you very much for the solutions! :-) >> >> It's my fault, but I forgot to mention that at the end of the loop, I >> would l

Re: [R] How to use the paste function to create an already used variable

2010-03-25 Thread Biedermann, Jürgen
Contact >> Details:--- >> Contact me: tal.gal...@gmail.com | 972-52-7275845 >> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il >> (Hebrew) | >> www.r-statistics.com (English) >> ---

[R] How to use the paste function to create an already used variable

2010-03-24 Thread Biedermann, Jürgen
Hi there, I have the following problem Four data frames exist: data1 data2 data3 data4 Now I want to write a loop and temporarily store the data1, data2, data3, data4 in a variable called data. I tried the following... for (i in 1:4) { Data <- paste("data",i,sep="") ... .. } but it doesn'

[R] "Complex?" import of pdf files (criminal records) into R table

2009-10-15 Thread Biedermann, Jürgen
Hi there, I'm facing the decision if it would be possible to transform several more or less complex pdf files into an R Table-Format or if it has to be done manually. I think it would be a impudent to expect a complete solution, but I would be grateful if anyone could give me an advice on how

Re: [R] cbind formula definition

2009-09-09 Thread Biedermann, Jürgen
(data)" to assign it to f , so that later the poLCA command uses >> my "f" expression the same way if I had put in V1,V2,V3 manually. >> >> Greetings >> Jürgen >> >> I think the problem is that in cbind need arguments of non character >> type

Re: [R] cbind formula definition

2009-09-09 Thread Biedermann, Jürgen
non character type, seperated by commas Henrique Dallazuanna schrieb: > I don't understand the cbind(bi) sintax, but you can do this with the > folowing: > (Using iris data from R) > > form <- formula(paste(paste(names(iris), collapse = " + "), "~ 1&quo

[R] Count number of different patterns (Polytomous variable)

2009-09-08 Thread Biedermann, Jürgen
Hi there, Does anyone know a method to calculate the number of different patterns in a given data frame. The variables are of polytomous type and not binary (for the latter i found a package called "countpattern" which unfortunately only functions for binary variables). V1 V2 V3 0 3

[R] cbind formula definition

2009-09-08 Thread Biedermann, Jürgen
Hi there, I have the following problem: I have a package called "polLCA" which has the following syntax: poLCA(formula, data) and needs the following formula definition: formula <- cbind(V1,V2,V3,...) So far so good. What I tried now was the following: #Get "data" with the "read.table" fuct