search for: model_b

Displaying 3 results from an estimated 3 matches for "model_b".

Did you mean: model_1
2011 Sep 08
2
Extract r.squared using cbind in lm
...ared, but that is not working in in the case with cbind. Here an example to illustrate the problem: a <- c(1,3,5,2,5,3,1,6,7,2,3,2,6) b <- c(12,15,18,10,18,22,9,7,9,23,12,17,13) c <- c(22,26,32,33,32,28,29,37,34,29,30,32,29) data <- data.frame(a,b,c) model_a <-lm(b~a,data=data) model_b <-lm(cbind(b,c)~a,data=data) summary(model_a)$r.squared summary(model_b)$r.squared How can I access r.squared in my case? Is there any option? In the end, I want a dataframe containing the the intercept, slope, p-value and r.squared for all Y's of my regression. thank you Johannes --
2012 Sep 08
1
Using predict() After Adding a Factor to a glm.nb() Model
...extracted predicted values using: py<-data.frame(seq(from=min(data$year), to=max(data$year), by=1)) p1<-predict(model_a, newdata=py, se.fit=TRUE, type='response') f1<-p1$fit plot(count~year, data=data) lines(py$year, f1) # Works perfectly. # Now, I want to add site as a factor: model_b<-glm.nb(count~year+as.factor(site), data=data) # I have tried a couple different ways of predicting the values based on model_b, but am having trouble. py<-data.frame(seq(from=min(data$year), to=max(data$year), by=1)) p1<-predict(model_b, newdata=py, se.fit=TRUE, type='response'...
2007 Dec 13
4
please explain find_with_ferret, retrieve_records, :include and :conditions
Hello, I''m using find_with_ferret to search multiple models and it works great. The trouble is I need to filter the results using :include and :conditions. I get two errors depending on the syntax I use in the search. Reading the source, I see the retrieve_records method seems to filter the :include and :conditions so that they only apply to the relevant model when searching