search for: indsub2

Displaying 1 result from an estimated 1 matches for "indsub2".

Did you mean: indsub1
2011 Sep 07
1
Weight in Function RM
...the exactly same result? Below are the R code to see difference in regression results MatY <- c(0.15,0.42,0.31,0.22) MatX <- rbind(c(1,0,0),c(0,1,0),c(1,0,0),c(0,0,1)) Data <- data.frame(cbind(MatY,MatX)) colnames(Data)[2]<-paste("IndSub1") colnames(Data)[3]<-paste("IndSub2") colnames(Data)[4]<-paste("IndSub3") Weight <- c(0.1,0.4,0.3,0.2) Result<- lm(formula = MatY~IndSub1+IndSub2+IndSub3-1, data = Data, weight = Weight) summary(Result) Data2 <- Data*Weight Result2<- lm(formula = MatY~IndSub1+IndSub2+IndSub3-1, data = Data2) summary(R...