Last active
November 26, 2015 10:52
-
-
Save steveharoz/6a8c79fa159e3d751bef to your computer and use it in GitHub Desktop.
Standard Error for R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# r doesn't have a standard error function | |
stderr = function(x) sqrt(var(x,na.rm=TRUE)/length(na.omit(x))) | |
ci = function(x, confidence.interval=0.95) stderr(x) * qnorm(1 - (1-confidence.interval)/2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment