search for: sxxm

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

Did you mean: sxem
2004 May 27
1
Getting the same values of adjusted mean and standard errors as SAS
...it[adjDF$Gender=="F"]); # match: 3.91111 cf 3.91111036 # Try to get standard errors at the adjusted means for Gender as follows: ddr <- data.frame(dd, res = residuals(mod)) nM <- summary(ddr$Gender)[["M"]] seRegM <- sqrt(mean( ddr$res[ddr$Gender=="M"]**2 )) sxxM <- sum((dd$Age[d$Gender=="M"]-meanAgeM)**2) syM <- seRegM * sqrt(1/nM + (meanAge-meanAgeM)**2/sxxM); #0.1103335 cf 0.11032602 - matches to 5 decimal places nF <- summary(ddr$Gender)[["F"]] seRegF <- sqrt(mean( ddr$res[ddr$Gender=="F"]**2 )) sxxF <- sum(...