search for: repwt

Displaying 2 results from an estimated 2 matches for "repwt".

Did you mean: rept
2009 Mar 05
1
hatvalues?
...help in understanding the theory. First, I take the simplest case of a single variant. For this I turn o John Fox's book, "Applied Regression Analysis and Generalized Linear Models, p 245 and generate this 'R' code: > library(car) > attach(Davis) # remove the NA's > narepwt <- repwt[!is.na(repwt)] > meanrw <- mean(narepwt) > drw <- narepwt - meanrw > ssrw <- sum(drw * drw) > h <- 1/length(narepwt) + (drw * drw)/ssrw > h This gives me a array of values the largest of which is > order(h, decreasing=TRUE) [1] 21 52 17 93 30 62 1...
2007 Nov 28
2
fit linear regression with multiple predictor and constrained intercept
Hi group, I have this type of data x(predictor), y(response), factor (grouping x into many groups, with 6-20 obs/group) I want to fit a linear regression with one common intercept. 'factor' should only modify the slopes, not the intercept. The intercept is expected to be >0. If I use y~ x + factor, I get a different intercept for each factor level, but one slope only if I use y~ x *