Advertisement
Advertisement
| 10.08.2008 at 08:57AM PDT, ID: 23797856 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: |
# ------- bar plot for STD, 95%CI and SEM ------
a <- c(25, 30, 34, 38, 43, 43, 46, 46, 49, 49, 52, 52, 55, 55, 58, 58, 62, 64,
66, 75)
b <- c(5, 5, 35, 44, 44, 47, 51, 55, 55, 58, 58, 62, 64, 64, 67, 67, 71, 74,
79, 85)
## Convert data vectors to dataframes
adf <- data.frame(Group = " Group A ", Measure = a)
bdf <- data.frame(Group = " Group B ", Measure = b)
## Combine into a dataframe using rbind
abData <- rbind(adf, bdf)
attach(abData)
tmp = split(Measure, Group)
means = sapply(tmp, mean)
medians = sapply(tmp, median)
stdev = sapply(tmp, sd)
# to calculate SE
require(sciplot)
se = sapply(tmp, se)
n <- sapply(tmp, length)
ciw <- qt(0.975, n) * stdev / sqrt(n)
# to make the 3 graphs in one row...
# however they actually don't look nice :-(
# maybe by controlling the "ylim" part things get better
par(mfrow=c(1,3))
# typeface set to Serif (or Times)
par(family="serif")
# ----- bar plot with SD
require(gplots)
plotCI(barcol="blue", pch=16, col="blue", barplot(means, col=c("white",
"gray90"),
ylim=c(0,max(means + stdev)), xlab = "Error bars: ±1SD", ylab="Measure")
, means, stdev,
add=TRUE)
# --------- bar plot with 95%CI
plotCI(barcol="red", pch=16, col="red", barplot(means, col=c("white", "grey90"),
ylim=c(0,max(means + ciw)), xlab = "Error bars: 95% CI", ylab="Measure"),
means, uiw=ciw,
add=TRUE)
|