search for: mylogit

Displaying 7 results from an estimated 7 matches for "mylogit".

Did you mean: mylogin
2011 Jan 27
2
Extrapolating values from a glm fit
...0.133333333333333, 0.238095238095238, 0.527777777777778, 0.566666666666667, 0.845238095238095, 0.55, 1, 0.888888888888889, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.5) weight <- c(1, 3, 2, 5, 4, 4, 3, 5, 5, 4, 5, 11, 22, 11, 15, 16, 11, 7, 14, 10, 16, 19, 11, 5, 4, 5, 6, 9, 4, 2, 5, 5, 2, 2) mylogit <- glm(y~x,weights=weight, family = binomial) # now I try plotting the predicted value, and it looks like a good fit, hopefully I can access what the glm is doing ypred <- predict(mylogit,newdata=as.data.frame(x),type="response") plot(x, ypred,type="l") points(x,y) # so...
2017 Mar 22
3
GLM con clusters
Buenas tardes, desde Uruguay, quiero realizar una regresión logística,con la función GLM, pero ademas quiero designarle a las observaciones clusters. La idea es decirle al programa que las observaciones corresponden a diferentes clusters. Saludos! Sebastián. [[alternative HTML version deleted]]
2017 Nov 11
1
effects package x axis labels
Dear All, probably a simple enough solution but don;t seem to be able to get my head around it...example based on a publicly available data set: mydata <- read.csv("https://stats.idre.ucla.edu/stat/data/binary.csv") mylogit <- glm(admit ~ gre + gpa + rank, data = mydata, family = "binomial") library(effects) plot(allEffects(mylogit) ? ? ?,axes=list(y=list(lab="Prob(xyz)")) ) axes=list(y=list(lab="Prob(xyz)")) changes the y axis labels for all 3 plots... Any thoughts on how I could cha...
2017 Mar 22
3
GLM con clusters
..., y con los resultados un análisis de > clústers. Quizá lo mejor seria usar ambos métodos de predicción y comparar > los resultados. Aún así, si te he entendido bien, entonces la manera de > hacerlo sería: primero la regresión y luego recuperas las predicciones. Por > ejemplo: > > mylogit <- glm(variable ~ ., data = df, family = "binomial") #Regresion > logistica > > summary(mylogit) #Ves que tal ha quedado. > > Puedes recuperar las prediciones con 'mylogit$fitted.values' y las puedes > poner en el dataframe original > > df$fitted <- m...
2012 May 11
3
Calculating all possible ratios
I have a data matrix with genes as columns and samples as rows. I want to create all possible gene ratios.Is there an elegant and fast way to do it in R and write it to a dataframe? Thanks for any help. Som. -- View this message in context: http://r.789695.n4.nabble.com/Calculating-all-possible-ratios-tp4627405.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML
2012 Oct 23
3
Error in contrasts message when using logistic regression code.
I have a rather large data set (about 30 predictor variables) I need to preform a logistic regression on this data. My response variable is binary. My code looks like this: mylogit <- glm(Enrolled ~ A + B + C + ... + EE, data = data, family = binomial(link="logit")) with A,B,C, ... as my predictor variables. Some categorical, some continuous, some binary. I run the code and get this error: Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) :...
2012 Jun 21
4
crosstable and regression for survey data (weighted)
I have survey data that I am working on. I need to make some multi-way tables and regression analyses on the data. After attaching the data, this is the code I use for tables for four variables (sweight is the weight variable): > a <- xtabs(sweight~research.area + gender + a2n2 + age) > tmp <- ftable(a) Is this correct? I don't think I need to use the strata and cluster