Displaying 4 results from an estimated 4 matches for "ci1".
Did you mean:
ci
2002 Jun 06
2
R correlations.
Hi, anybody have any ideas on this ?
I have two sequences of proportions. Due to
conventions in my field, I need to produce a linear
correlation between the two. Each sequence of
proportions are based upon differing numbers of
observations (although within a sequence the number of
observations may not fluctuate too much) so it may be
necessary/advisable to variance stabilize. Is their a
best
2024 Jan 18
0
Is there any design based two proportions z test?
...that the variance of the difference of two independent
random variables is the sum of their variances, plus the observation
that the width of the confidence interval is 2*z*SE, where z is the
normal quantile corresponding to the confidence level (e.g., 1.96 for a
95% CI).
ciDiff <- function(ci1, ci2, level=0.95){
p1 <- mean(ci1)
p2 <- mean(ci2)
z <- qnorm((1 - level)/2, lower.tail=FALSE)
se1 <- (ci1[2] - ci1[1])/(2*z)
se2 <- (ci2[2] - ci2[1])/(2*z)
seDiff <- sqrt(se1^2 + se2^2)
(p1 - p2) + c(-z, z)*seDiff
}
>
> Example: Prevalence of Diabete...
2006 Feb 01
1
several plots in one
...h each other.
I also tried calling plotCI with argument add=TRUE, which didn't seem to
work (that is actually what I wanted I think).
(It should look the same as if I called plotCI twice with same
labels/xlim/ylim/etc.)
plotCI(x = cbind(x1,x2),
y = cbind(means1,means2), # means1 == ci1["Estimate",]
xlim = c(0,100), #ylim = c(0.2,0.5),
ylab = "System welfare",
pch = 7, col = c("red","blue"), type = "b",
uiw = cbind(uiw1,uiw2))
Thanks in advance,
JeeBee.
2008 Jan 02
6
problem when editing record in polymorphic relation
...:content
end
class Ci < ActiveRecord::Base
belongs_to :content, :polymorphic => true
end
The table, cis ,contains the following records
=============================================
id | ci_number | content_id | content_type
----+----------+-----------+------------+--------------
1 | CI1 | 1 | SoftwareCi
2 | CI2 | 2 | SoftwareCi
3 | CI3 | 1 | HardwareCi
4 | CI4 | 2 | HardwareCi
The table, software_cis ,contains the following records
=====================================================
id | asset_tag | sta...