search for: testx1

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

Did you mean: test1
2013 Nov 08
1
Different output from lm() and lmPerm lmp() if categorical variables are included in the analysis
...ategorical variables in lmp() from package lmPerm According to help(lmp): "This function will behave identically to lm() if the following parameters are set: perm="", seq=TRUE, center=FALSE.") But not in the case of including categorical variables: require(lmPerm) set.seed(42) testx1 <- rnorm(100,10,5) testx2 <- c(rep("a",50),rep("b",50)) testy <- 5*testx1 + 3 + runif(100,-20,20) test <- data.frame(x1=testx1,x2= testx2,y=testy) atest <- lm(y ~ x1*x2,data=test) aptest <- lmp(y ~ x1*x2,data=test,perm = "", seqs = TRUE, center = FALS...