Re: [R] Matchit

2013-12-28 Thread Uwe Ligges
On 27.12.2013 21:17, Thyago Moraes wrote: Dear Friends, I'm using Matchit package for a Cohor Study. After match the number provided by the summary output apparently don't correspond to the true value: Here the values provided by summary:summary (test) Summary of Balance for Matched Data

Re: [R] need help with distribution graphics

2013-12-28 Thread Uwe Ligges
On 28.12.2013 04:25, capricy gao wrote: I need to graph categorical data like a or b in the the following figure. Could anybody let me know what command line I should go with? Figures are removed when this goes to the mailing list, so nobody knows what you are talking about. Better

[R] Error in loading package

2013-12-28 Thread agrima srivastava
Hi I am trying to install a packaage qgraph I am using install.packages(qgraph, dependencies=TRUE) for the same. After that when I type library('qgraph') I am getting this error Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())) : there is no package called 'ReadImages' Error:

Re: [R] Error in loading package

2013-12-28 Thread Uwe Ligges
On 28.12.2013 16:15, agrima srivastava wrote: Hi I am trying to install a packaage qgraph I am using install.packages(qgraph, dependencies=TRUE) for the same. After that when I type library('qgraph') I am getting this error Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())) : there is

Re: [R] Error in loading package

2013-12-28 Thread Pascal Oettli
Hello, My suggestion: read the error message. Regards, Pascal On 29 December 2013 00:15, agrima srivastava agrimasrivasta...@gmail.com wrote: Hi I am trying to install a packaage qgraph I am using install.packages(qgraph, dependencies=TRUE) for the same. After that when I type

Re: [R] Error in loading package

2013-12-28 Thread Prof Brian Ripley
On 28/12/2013 15:15, agrima srivastava wrote: Hi I am trying to install a packaage qgraph I am using install.packages(qgraph, dependencies=TRUE) for the same. After that when I type library('qgraph') I am getting this error Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())) : there is no

Re: [R] need help with distribution graphics

2013-12-28 Thread capricy gao
Really? OK, here the linked is an example: http://iai.asm.org/content/77/10/4631/F1.expansion.html Please, any input would be appreciated! On Saturday, December 28, 2013 6:28 AM, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: On 28.12.2013 04:25, capricy gao wrote: I need to

[R] How to subset an 'ff' object?

2013-12-28 Thread Christofer Bogaso
Hi again, I have loaded a huge csv file in R using 'ff' package, however could not understand how can I subset the loaded object. Below is my try: suppressMessages(library(ff)) Dat - read.csv.ffdf(file = f:/Book1.csv, header = F, colClasses = c('Date', 'factor')) Dat ffdf (all open)

Re: [R] How to subset an 'ff' object?

2013-12-28 Thread arun
HI, The dput() is showing error message. Is it not possible to convert it to data.frame and subset? Using the example from ?ffdf  m - matrix(1:12, 3, 4, dimnames=list(c(r1,r2,r3), c(m1,m2,m3,m4)))    v - 1:3    ffm - as.ff(m)    ffv - as.ff(v)   ffd - ffdf(ffm, v=ffv,

Re: [R] How to subset an 'ff' object?

2013-12-28 Thread Christofer Bogaso
Hi Arun, I will look into why dput is giving error. In the mean time I am attaching the csv file with this mail, however not sure if R-hep will accept it. I tried to converting it data.frame. However as 'Dat' is of huge size (that is why I loaded it via ff route), converting the entire

Re: [R] How to subset an 'ff' object?

2013-12-28 Thread arun
Hi Christofer, You can check ?subset.ff from library(ffbase) subset(ffd,m11) ffdf (all open) dim=c(2,5), dimorder=c(1,2) row.names=NULL ffdf virtual mapping    PhysicalName VirtualVmode PhysicalVmode  AsIs VirtualIsMatrix m1  ffm  integer   integer FALSE   FALSE m2 

Re: [R] need help with distribution graphics

2013-12-28 Thread Ben Bolker
capricy gao capricyg at yahoo.com writes: Really? OK, here the linked is an example: http://iai.asm.org/content/77/10/4631/F1.expansion.html Please, any input would be appreciated! (helpful advice from Uwe Ligges deleted) On 28.12.2013 04:25, capricy gao wrote: I need to graph

Re: [R] How to subset an 'ff' object?

2013-12-28 Thread arun
Hi, I tried your example dataset:  Dat - read.csv.ffdf(file=Book1.csv,header=FALSE,colClasses=c('Date','factor'),sep=) subset(Dat,V1=='2013-12-27') ffdf (all open) dim=c(2,2), dimorder=c(1,2) row.names=NULL ffdf virtual mapping    PhysicalName VirtualVmode PhysicalVmode  AsIs VirtualIsMatrix V1   

Re: [R] Matchit

2013-12-28 Thread Thyago Moraes
Sorry for that. The differences are in red. Here it is code and output: Call:matchit(formula = LES ~ Modalidade.DP.Inicial + Age + BMI + Education.dic.4y + Davies.Score + DM + Hypertension + Gender + Race + Incomes.dic + Bienium + time.of.predialysis.care, data = Lupus, method =

[R] MISE

2013-12-28 Thread Ms khulood aljehani
Hello How i can calculate the Mean Integrated Squred error (MISE)? i used a generated data and find the Nadaraya-Watson kernel regression estimator for the densitynow i wont to find the MISE to evaluate the estimate i found the (nmise package{sa}) but the note that was witten in the

[R] Translating a basic Python script into R

2013-12-28 Thread sun shine
Hi I am attempting to translate some of the models that Donella Meadows wrote about in her book Thinking in systems into code. Originally, I had wanted to do this in Python, but thought that it would be fun to see if it is feasible to do so in R, especially given the plotting capacity of R.

Re: [R] need help with distribution graphics

2013-12-28 Thread Jim Lemon
On 12/29/2013 03:41 AM, capricy gao wrote: Really? OK, here the linked is an example: http://iai.asm.org/content/77/10/4631/F1.expansion.html Please, any input would be appreciated! Hi Capricy, Really. Try the beeswarm package or the ehplot or dendroPlot functions in the plotrix package.

[R] plot.cuminc

2013-12-28 Thread Thyago Moraes
Dear Friends, I'm using the following code for generate a Figure where the x-axis is divided in intervals of 12 months (package cmprsk).However, the same numbers also appears vertically in the top of the figure.Not sure what I'm missing to avoid this. Thanks in advance Thyago plot.cuminc

[R] What purpose is served by reflexive function assignments?

2013-12-28 Thread Andrew Hoerner
Let us suppose that we have a function foo(X) which is called inside another function, bar(). Suppose, moreover, that the name X has been assigned a value when foo is called: X - 2 bar(X=X){ foo(X) } I have noticed that many functions contain arguments with defaults of the form X=X. Call this

Re: [R] How to subset an 'ff' object?

2013-12-28 Thread David Winsemius
On Dec 28, 2013, at 9:26 AM, Christofer Bogaso wrote: Hi again, I have loaded a huge csv file in R using 'ff' package, however could not understand how can I subset the loaded object. Below is my try: suppressMessages(library(ff)) Dat - read.csv.ffdf(file = f:/Book1.csv, header = F,

Re: [R] How to subset an 'ff' object?

2013-12-28 Thread michael curran
I've found the package ffbase to be very helpful in terms of applying standard R-type slicing/dicing/aggregating to ff objects. install.packages(ffbase) ?subset.ff From: Christofer Bogaso bogaso.christo...@gmail.com To: r-help r-help@r-project.org Sent:

Re: [R] What purpose is served by reflexive function assignments?

2013-12-28 Thread Ista Zahn
On Sat, Dec 28, 2013 at 10:27 PM, Andrew Hoerner ahoer...@rprogress.org wrote: Let us suppose that we have a function foo(X) which is called inside another function, bar(). Suppose, moreover, that the name X has been assigned a value when foo is called: X - 2 bar(X=X){ foo(X) } I have

Re: [R] What purpose is served by reflexive function assignments?

2013-12-28 Thread Peter Langfelder
On Sat, Dec 28, 2013 at 7:27 PM, Andrew Hoerner ahoer...@rprogress.org wrote: Let us suppose that we have a function foo(X) which is called inside another function, bar(). Suppose, moreover, that the name X has been assigned a value when foo is called: X - 2 bar(X=X){ foo(X) } I have

Re: [R] What purpose is served by reflexive function assignments?

2013-12-28 Thread David Winsemius
On Dec 28, 2013, at 7:27 PM, Andrew Hoerner wrote: Let us suppose that we have a function foo(X) which is called inside another function, bar(). Suppose, moreover, that the name X has been assigned a value when foo is called: X - 2 bar(X=X){ foo(X) } I have noticed that many