Please supply some sample data and code.
The easiest way to supply data is to use the dput() function. Example with
your file named "testfile":
dput(testfile)
Then copy the output and paste into your email. For large data sets, you can
just supply a representative sample. Usually,
dput(head(testfile, 100)) will be sufficient.
John Kane
Kingston ON Canada
> -----Original Message-----
> From: farnoosh_81 at yahoo.com
> Sent: Mon, 15 Oct 2012 12:31:12 -0700 (PDT)
> To: r-help at r-project.org
> Subject: [R] library(rmeta)
>
> Hello,
>
> I have a data with following format:
> Predictors n11 n12 n21 n22 Odds.Ratio
> log.ratio se.log.odds.
> 1 ProcOR respirato
> 2 ProcVaric vein
> 3 DiagCardiac anom
> 4 DiagAllergy
> 5 DiagOth skin dx
> 6 DiagGastritis
>
> I want to plot odds ratio by command: forestplot in rmeta library, but I
> get the following error constantly.
> Error in apply(is.na(labeltext), 1, any) :
> dim(X) must have a positive length
> I understood, I need to compute for CI for odds ratio which I have, but I
> don't know how to apply odds.ratio in this form.
> When I put odds.ratio=as.matrix(odds.ratio), my plot shows the numbers.
> I really appreciate your help.
> Thanks.
>
> Best,Farnoosh Sheikhi
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
____________________________________________________________
Publish your photos in seconds for FREE
TRY IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if4