Using par seems easily put a hist and a density side by side on the same
output window.
I would like to use some features in histogram from Lattice, but how can I put
histogram and densityplot side by side on the same graph?
Thank you
par(mfrow=c(2,1))
hist(y)
plot(density(y))
Jue Wang,
I have a plot of cumulative distribution function which is a step function,
I'd like to put a cycle at the right end of each line to indicate that the
value here is not available in this line.
How can I do that?
Thank you.
cdf-function(x){
do.call(rbind,lapply(1:nrow(as.matrix(x)),
The data set has a number of variables each of which is classified into two
groups.
For each variable of each group, I need to create a histogram. All the
histograms are to be lined up into a file that looks like
group1 group2
Variable 1 Histogram histogram
Does any one know why wilcox.exact sometimes doesn't agree with wilcox_test on
the estimate of the difference of medians in two levels ?
Thank you
Jue Wang, Biostatistician
Contracted Position for Preclinical Research Biostatistics
PrO Unlimited
(908) 231-3022
Example 1: (wilcox_test gives
Does anyone know why wilcox.exact gives W-statistic 6 instead of 12 as
indicated below.
12 is the rank sum of group 0 of x, which is the linear statistic computed by
wilcox_test.
y-c(1,2,3,4,5)
x-c(1,1,0,0,0)
(a) wilcox.exact
wilcox.exact(y~x)
Exact Wilcoxon rank sum test
data: y by x
W =
Hi,
I am running the following example which can be found on page 12 of the pdf
file of COIN package
wt-wilcox_test(pd~age,data=water_transfer,distribution=exact, conf.int=TRUE)
wt actually contains the estimate of difference in location and the
confidence interval of it. I am just wondering
Hi,
Two functions wilcox.exact and wilcox_test give slightly different confidence
intervals of the difference of the medians: for example
y-c(0,0,1.081,0.594,0,0.769,0,0.009,0,0,0.798,0.405,0.498,0.946,1.35,1.149,0.528)
x-c(rep(1,10),rep(2,7))
aa-wilcox.exact(y~x,conf.int=TRUE)
What is the correct form to write statement meaning:
if (a==1) {b=2; c=3}; else {b=0; c=0};
Thank you
Jue Wang, Biostatistician
Contracted Position for Preclinical Research Biostatistics
PrO Unlimited
(908) 231-3022
__
R-help@stat.math.ethz.ch