Re: [R] interpreting weight in meta-analysis of proportion

2014-04-18 Thread Bernd Weiss
On 18.04.2014 13:02, petre...@unina.it wrote: Prof. Dewey, sorry for the trivial question and many thank for the replay. Using which package? In this case I used the meta package, but I know that for all but the DerSimonian-Laird method the R function rma.uni of R package metafor is

[R] Add prediction interval forest plot (package meta)

2013-06-06 Thread Bernd Weiss
Dear all, I am struggling to add a prediction interval to a forest plot that was created with forest.meta(), package meta. I checked the source of forest.meta() and realized that it is heavily relying on grid. I am lacking any experience with grid graphics. So, I am having difficulties to find

Re: [R] Change color in forest.rma (metafor)

2011-08-24 Thread Bernd Weiss
Am 24.08.2011 07:50, schrieb Paola Tellaroli: My script is the following: library(metafor) yi-c(-0.1, 0.2, 0.3, 0.4) sei-c(0.4, 0.2, 0.6, 0.1) vi-sei^2 studi-c(A, B, C, D) eventi.c-c(10, 5, 7, 6) n.c-c(11, 34, 25, 20) eventi.a-c(2, 7, 6, 5) n.a-c(11, 35, 25, 15) dfs-rma(yi, vi,

Re: [R] regression line on boxplots

2011-04-01 Thread Bernd Weiss
Am 01.04.2011 11:24, schrieb Yan Jiao: Dear R users, I'm trying to add a regression line on my boxplots (something like:boxplot(c(1:3),c(4:6),c(5:8))) But I can't see it. Please help !!! It's not a April fool's joke!!! Your sample data does not make any sense (at least to me). I would do it

Re: [R] regular expression

2011-03-31 Thread Bernd Weiss
Am 31.03.2011 19:31, schrieb array chip: Hi, I am stuck on this: how to specify a match pattern that means not to include abc? I tried: grep(^(abc), hello, value=T) should return hello. grep([^(abc)], hello, value=T) [1] hello HTH, Bernd __

Re: [R] regular expression

2011-03-31 Thread Bernd Weiss
Am 31.03.2011 21:06, schrieb array chip: Ok then this code didn't do what I wanted. I want not including 'arg' before '.symptom', not individual letters of arg, but rather as a word. Bill Dunlap suggested using invert=T, it works for single 1 condition, but not for 2 conditions here: not

Re: [R] Quick recode of -999 to NA in R

2011-03-30 Thread Bernd Weiss
Am 30.03.2011 09:15, schrieb Christopher Desjardins: Hi, I am trying to write a loop to recode my data from -999 to NA in R. What's the most efficient way to do this? Below is what I'm presently doing, which is inefficient. Thanks, Chris dat0- read.table(time1.dat) colnames(dat0)- c(e1dq,

Re: [R] write all the permutations of a set

2011-03-24 Thread Bernd Weiss
Am 24.03.2011 11:28, schrieb Arnau Mir: Hello. Somebody knows how to write in R all the permutations of a given set? For example, is the set is {a,b,c} I want the following: a,b,c a,c,b b,c,a b,a,c c,a,b c,b,a library(gregmisc) permutations(3, 3, letters[1:3]) gives [,1] [,2] [,3] [1,]

Re: [R] Problem using R and Beamer...

2010-08-03 Thread Bernd Weiss
Am 04.08.2010 06:21, schrieb Jeffry Madura: [...] Can anyone explain to me what is going on here? The frame code in latex is \begin{frame}{fragile} \frametitle{Numbers} \textbf{Numbers} can be represented in a variety of different formats. For example the number $1.2345\times 10^5$ is

Re: [R] Visualization of coefficients

2010-07-02 Thread Bernd Weiss
Am 02.07.2010 08:10, schrieb Wincent: Dear all, I try to show a subset of coefficients in my presentation. It seems that a standard table is not a good way to go. I found figure 9 (page 9) in this file (

Re: [R] regex and sub

2010-05-14 Thread Bernd Weiss
Am 14.05.2010 12:10, schrieb arnaud Gaboury: Dear group, Here is an object: z - c(LSCPos100415.csv, LSCPos100416.csv, LSCPos100419.csv, LSCPos100420.csv, LSCPos100421.csv, LSCPos100422.csv, LSCPos100423.csv, LSCPos100426.csv, LSCPos100427.csv, LSCPos100428.csv, LSCPos100429.csv,

Re: [R] Regex and gsub

2010-05-11 Thread Bernd Weiss
Am 11.05.2010 10:37, schrieb arnaud Gaboury: Dear group, Here is my df : df3 - structure(list(DESCRIPTION = c(COPPER May/10, COTTON NO.2 Jul/10, CRUDE OIL miNY May/10, GOLD Jun/10, ROBUSTA COFFEE (10) Jul/10, SOYBEANS Jul/10, SUGAR NO.11 Jul/10, SUGAR NO.11 May/10, WHEAT Jul/10, SPCL

Re: [R] [ggplot2] Densityplot, grouping and NAs

2009-03-25 Thread Bernd Weiss
ONKELINX, Thierry schrieb: Dear Bernd, Omitting the NA values from the dataset will work. ggplot(aes(x = x, color = g), data = na.omit(mydf)) + geom_density() Dear Thierry, thanks for your reply! Of course, regarding my little toy example na.omit() perfectly works. However, my real data

Re: [R] Meta-Analyisis on Correlations

2009-02-13 Thread Bernd Weiss
Sebastian Stegmann schrieb: [...] The R packages meta and rmeta are, as far as I can see, set up for analysis with effect sizes for differences (i.e. comparison of the means/odds-ratios of experimental and control group). Only the function metagen from the meta-package looks like it would

Re: [R] Odp: Question about collapse/aggregate and avoidance of loops

2009-01-29 Thread Bernd Weiss
markle...@verizon.net schrieb: Thanks Petr because I sent Bernd a solution offline but yours is MUCH NICER. it's not worth showing you because it was pretty ugly. Dear Mark Petr, Thank your very much! I like both solutions. Petr's is the more obvious one but Mark's solution is good for

[R] ggplot2: histogram with proportions (or %)

2008-10-30 Thread Bernd Weiss
Dear all (Hadley, Thierry :-), I was wondering how to force ggplot/qplot(... geom=histogram) to plot proportions (or %) instead of counts/densities. Thanks for your help, Bernd __ R-help@r-project.org mailing list

[R] Lattice: key does not accept German umlaute

2008-06-06 Thread Bernd Weiss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 library(lattice) ## works as expected xyplot(1~1, key = list(text = list(c(Maenner ## works as expected xyplot(1~1, key = list(text = list(c(Maenner))), xlab = M\344nner) ## gives an error xyplot(1~1, key = list(text = list(c(M\344nner Is

Re: [R] Lattice: key does not accept German umlaute

2008-06-06 Thread Bernd Weiss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd Weiss schrieb: | library(lattice) | | ## works as expected | xyplot(1~1, key = list(text = list(c(Maenner | | ## works as expected | xyplot(1~1, key = list(text = list(c(Maenner))), xlab = M\344nner) | | ## gives an error | xyplot(1~1, key

Re: [R] Lattice: key does not accept German umlaute

2008-06-06 Thread Bernd Weiss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prof Brian Ripley schrieb: [...] | It works correctly for me in CP1252 with R-patched, and gives an error | in 2.7.0 (and works in 2.6.2). I think it was fixed as side effect of | | oRare string width calculations in package grid were not

Re: [R] how to generate sequence a - z

2008-01-29 Thread Bernd Weiss
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 skestin schrieb: | I suppose it's very simple but I can't find the way to generate a sequence of | characters, e.g. from a to z. | Could you please help me with this? ?letters letters HTH, B. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7

[R] as.numeric(FALSE) fails after loading the Matrix package

2007-10-03 Thread Bernd Weiss
Dear all, is this a bug? as.numeric(FALSE) [1] 0 library(Matrix) Loading required package: lattice as.numeric(FALSE) Error in UseMethod(as.double) : no applicable method for as.double Regards, Bernd version _ platform i386-pc-mingw32 arch i386 os

Re: [R] as.numeric(FALSE) fails after loading the Matrix package

2007-10-03 Thread Bernd Weiss
Bernd Weiss schrieb: Dear all, is this a bug? as.numeric(FALSE) [1] 0 library(Matrix) Loading required package: lattice as.numeric(FALSE) Error in UseMethod(as.double) : no applicable method for as.double After doing a complette reinstallation (uninstalling R, deleting all

Re: [R] Putting column names in some automated way

2007-09-16 Thread Bernd Weiss
Megh Dal schrieb: Dear all, I have following codes: colnames(data) = c(var, var, var) i = c(1,2,3) Now I want construct a for loop starting from 1 to 3 to give the new names of columns for dataframe data like below colnames(data) c(var1, var2, var3) Definitely I could do this