English 中文(简体)
抽点估计数和95%的 epi科
原标题:Extracting Point estimates and 95% CIs section of epi.tests output

我很想知道从<代码>epi.tests/中获取“点估计和95%的 CI”部分,在

问题回答

您可以从清单物体中提取总表,然后将其胁迫为数据范围

dat.v01    <- c(670,202,74,640)
rval.tes01 <- epi.tests(dat.v01)
as.data.frame(rval.tes01[1])

回返

detail.statistic  detail.est detail.lower detail.upper
1                ap  0.54981084   0.52493735    0.5744996
2                tp  0.46910467   0.44430554    0.4940184
3                se  0.90053763   0.87674618    0.9210923
4                sp  0.76009501   0.72977646    0.7885803
5           diag.ac  0.82597730   0.80640489    0.8443346
6           diag.or 28.68611185  21.51819166   38.2417364
7              nndx  1.51370055   1.40910043    1.6487431
8            youden  0.66063265   0.60652264    0.7096726
9            pv.pos  0.76834862   0.73889263    0.7959784
10           pv.neg  0.89635854   0.87163929    0.9177402
11           lr.pos  3.75372618   3.32068844    4.2432346
12           lr.neg  0.13085517   0.10506432    0.1629771
13           p.rout  0.45018916   0.42550037    0.4750627
14            p.rin  0.54981084   0.52493735    0.5744996
15           p.tpdn  0.23990499   0.21141968    0.2702235
16           p.tndp  0.09946237   0.07890770    0.1232538
17           p.dntp  0.23165138   0.20402157    0.2611074
18           p.dptn  0.10364146   0.08225983    0.1283607




相关问题
How to plot fitted model over observed time series

This is a really really simple question to which I seem to be entirely unable to get a solution. I would like to do a scatter plot of an observed time series in R, and over this I want to plot the ...

REvolution for R

since the latest Ubuntu release (karmic koala), I noticed that the internal R package advertises on start-up the REvolution package. It seems to be a library collection for high-performance matrix ...

R - capturing elements of R output into text files

I am trying to run an analysis by invoking R through the command line as follows: R --no-save < SampleProgram.R > SampleProgram.opt For example, consider the simple R program below: mydata =...

R statistical package: wrapping GOFrame objects

I m trying to generate GOFrame objects to generate a gene ontology mapping in R for unsupported organisms (see http://www.bioconductor.org/packages/release/bioc/vignettes/GOstats/inst/doc/...

Changing the order of dodged bars in ggplot2 barplot

I have a dataframe df.all and I m plotting it in a bar plot with ggplot2 using the code below. I d like to make it so that the order of the dodged bars is flipped. That is, so that the bars labeled "...

Strange error when using sparse matrices and glmnet

I m getting a weird error when training a glmnet regression. invalid class "dgCMatrix" object: length(Dimnames[[2]]) must match Dim[2] It only happens occasionally, and perhaps only under larger ...

Generating non-duplicate combination pairs in R

Sorry for the non-descriptive title but I don t know whether there s a word for what I m trying to achieve. Let s assume that I have a list of names of different classes like c( 1 , 2 , 3 , 4 ) ...

Per panel smoothing in ggplot2

I m plotting a group of curves, using facet in ggplot2. I d like to have a smoother applied to plots where there are enough points to smooth, but not on plots with very few points. In particular I d ...