[R] Outlier Problem in Survreg Function

2010-07-25 Thread Vipul Agarwal
Hi Everyone, I have recently started using r and working on survival analysis using the function survreg. I am facing a trange problem. One of the covariates in my analysis has outliers because of which survreg is giving incorrect results. Howevere when I am removing the outliers or scaling down

Re: [R] Equivalent to go-to statement

2010-07-25 Thread Gabor Grothendieck
On Sun, Jul 25, 2010 at 1:57 AM, Michael Haenlein haenl...@escpeurope.eu wrote: Dear all, I'm working with a code that consists of two parts: In Part 1 I'm generating a random graph using the igraph library (which represents the relationships between different nodes) and a vector (which

Re: [R] UseR! 2010 - my impressions

2010-07-25 Thread friedrich . leisch
On 07/23/2010 06:50 PM, Ravi Varadhan wrote: Dear UseRs!, Everything about UseR! 2010 was terrific! I really mean everything - the tutorials, invited talks, kaleidoscope sessions, focus sessions, breakfast, snacks, lunch, conference dinner, shuttle services, and the participants. The

[R] Discrepancy in help for object.size() and question on how to round object sizes

2010-07-25 Thread Jennifer Lyon
I think there is a discrepancy In the help for object.size(). In the usage section there is the comment: ## S3 method for class 'object_size': while in the value section there is the text: An object of class ‘object.size’ ... And R itself says: class(object.size(letters)) [1] object_size

[R] error using predict

2010-07-25 Thread Xebar Saram
Hi I am very new to R (so excuse me in advance if this is pretty trivial) I am using the predict function to get prediction on a dataset from another dataset using the follwoing command: newpredT2003 = predict( object=out.model_T2003, newdata=aodmc_2003 , level = 0 ) yet i get this error:

Re: [R] Discrepancy in help for object.size() and question on how to round object sizes

2010-07-25 Thread Duncan Murdoch
On 25/07/2010 7:58 AM, Jennifer Lyon wrote: I think there is a discrepancy In the help for object.size(). In the usage section there is the comment: ## S3 method for class 'object_size': while in the value section there is the text: An object of class ‘object.size’ ... And R itself says:

[R] Manage several graphical devices in interactive mode

2010-07-25 Thread Sébastien Bihorel
Dear R-users, Does anybody know a good way to create and use several graphical devices at the same time in interactive mode? Ideally, I'd like to open 2 to 3 devices and assign names to them. This way, I could make any addition/modification/update to a particular device using its name. I did not

[R] R equivalent of SAS proc freq

2010-07-25 Thread Sébastien Bihorel
Dear R-users, I am looking for a R function that would be the equivalent of the SAS proc freq ( http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#/documentation/cdl/en/procstat/63104/HTML/default/procstat_freq_sect006.htm). The table, ftable, xtabs functions are

Re: [R] R equivalent of SAS proc freq

2010-07-25 Thread David Winsemius
On Jul 25, 2010, at 9:32 AM, Sébastien Bihorel wrote: Dear R-users, I am looking for a R function that would be the equivalent of the SAS proc freq ( http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#/ documentation/cdl/en/procstat/63104/HTML/default/

Re: [R] Manage several graphical devices in interactive mode

2010-07-25 Thread Ted Harding
On 25-Jul-10 13:22:11, Sébastien Bihorel wrote: Dear R-users, Does anybody know a good way to create and use several graphical devices at the same time in interactive mode? Ideally, I'd like to open 2 to 3 devices and assign names to them. This way, I could make any

Re: [R] R equivalent of SAS proc freq

2010-07-25 Thread Corey Sparks
you can use prop.tables() on a table() object to get %ages, does this do what you need? - Corey Sparks, PhD Assistant Professor Department of Demography and Organization Studies University of Texas at San Antonio 501 West Durango Blvd Monterey Building 2.270C San Antonio, TX 78207

Re: [R] Manage several graphical devices in interactive mode

2010-07-25 Thread Duncan Murdoch
On 25/07/2010 10:03 AM, (Ted Harding) wrote: On 25-Jul-10 13:22:11, Sébastien Bihorel wrote: Dear R-users, Does anybody know a good way to create and use several graphical devices at the same time in interactive mode? Ideally, I'd like to open 2 to 3 devices and assign names to them. This way,

[R] Optmatch

2010-07-25 Thread nero
Hello , i want to work with the optmatch-package (http://cran.r-project.org/web/packages/optmatch/index.html).. Like many other packages , the information-window opens after the library()-command. How can i stop this? The Information-Window must not open a single time! How can i handle this

[R] Mask grid in R

2010-07-25 Thread Agustín Muñoz
Hi all, I want to cut a grid (Interpolation) with a Polygon in R, one knows how to do it... I hope I can help, as they always do. from now, thank you very much. Regards... Saludos Cordiales... Agustín Muñoz M. [[alternative HTML version deleted]]

[R] Left Outer Join 2 DF's on Multiple Conditions

2010-07-25 Thread harsh yadav
Hi, I am trying to execute the following SQL statement using two data frames: tab1, tab2 : Two Tables Select tab1.*, tab2.*, tab1.tobiiTime - tab2.ruiTime as timeDiff, IFNULL(n-m, -999) as alwaysIncrement FROM tab1 LEFT OUTER JOIN tab2 On tab1.data1 - tab2.mouseX = 0 And

[R] 3d topographic map

2010-07-25 Thread sheck
Hi All- I would like to create a 3d topographic map using lat/lon and z(height). I have been scouring the R help pages and have not located the package I am looking for. Does anyone have a suggestion of package that will work for this? thanks- sherri

Re: [R] 3d topographic map

2010-07-25 Thread David Winsemius
On Jul 25, 2010, at 6:31 PM, sh...@ucar.edu wrote: Hi All- I would like to create a 3d topographic map using lat/lon and z(height). I have been scouring the R help pages and have not located the package I am looking for. Does anyone have a suggestion of package that will work for

Re: [R] Left Outer Join 2 DF's on Multiple Conditions

2010-07-25 Thread Nikhil Kaza
Look at sqldf package, it is easier to do sql like statements with it. Nikhil Kaza Asst. Professor, City and Regional Planning University of North Carolina nikhil.l...@gmail.com On Jul 25, 2010, at 6:10 PM, harsh yadav wrote: Hi, I am trying to execute the following SQL statement using two

[R] CRAN (and crantastic) updates this week

2010-07-25 Thread Crantastic
CRAN (and crantastic) updates this week New packages * evaluate (0.1) Hadley Wickham http://crantastic.org/packages/evaluate Parsing and evaluation tools that make it easy to recreate the command line behaviour of R. * multitaper (0.1-1) Karim Rahim

[R] Is there a function to interdigitate two columns?

2010-07-25 Thread Bryan Hanson
Hello List Inhabitants: I don¹t know what this operation is called or if there is a function that does it automatically, hence I seek your help! If I divide a large data collection tasks between two students, and I have a master list of samples, but one student records some of the values, and

Re: [R] Is there a function to interdigitate two columns?

2010-07-25 Thread RICHARD M. HEIBERGER
result - data.frame(samp=samp, merged=ifelse(is.na(student2), student1, student2)) result samp merged 1 A 25.50 2 B 29.40 3 C 22.00 4 D 34.30 5 E 13.60 6 F 10.50 7 G 19.70 8 H 20.22 9 I 17.00 10J 12.90 Rich [[alternative HTML

[R] Loading Rdata files in a Package

2010-07-25 Thread Andrew Leeser
I have an .Rdata file saved in my data folder in a package I created. However, when I use the data() function it doesn't recognize that there any dataset exists within the package. Is there anything specific I need to do such that the data() function will load my dataset? Thanks in advance,

Re: [R] package for rank ordered logit

2010-07-25 Thread zachmohr
You may want to try a multinomial logit, mlogit{mlogit}. Hope this helps. On Fri, Jul 16, 2010 at 11:42 AM, Suresh Singh-2 [via R] ml-node+2291644-2038081369-246...@n4.nabble.comml-node%2b2291644-2038081369-246...@n4.nabble.com wrote: My understanding is that polr will do ordered logit but

Re: [R] Loading Rdata files in a Package

2010-07-25 Thread Charles C. Berry
On Sun, 25 Jul 2010, Andrew Leeser wrote: I have an .Rdata file saved in my data folder in a package I created. However, when I use the data() function it doesn't recognize that there any dataset exists within the package. Is there anything specific I need to do such that the data() function

[R] Marginal effects from interaction regression model

2010-07-25 Thread Guillem R.
Dear all, I'd like to plot the marginal effect of a variable in a multiplicative interaction regression, that is, the effect of a variable conditional on the values of another variable. As an illustration, given model lm1 lm1 - lm(y ~ x*z) I'd like to get the effects of x on y conditional on

[R] hatching posibility in Panel.Polygon

2010-07-25 Thread HC
Hatching with lines can be done in polygon function using density and angle arguments. Is similar possibility of hatching polygons available when using panel.polygon while trying to plot in panels using lattice? Many thanks in advance for your help. HC -- View this message in context:

Re: [R] Marginal effects from interaction regression model

2010-07-25 Thread David Winsemius
On Jul 25, 2010, at 10:24 PM, Guillem R. wrote: Dear all, I'd like to plot the marginal effect of a variable in a multiplicative interaction regression, that is, the effect of a variable conditional on the values of another variable. As an illustration, given model lm1 lm1 - lm(y ~ x*z)

Re: [R] Marginal effects from interaction regression model

2010-07-25 Thread Guillem R.
As far as I know, the predict command gives the predicted values (and intervals) of y, but what I'm looking for is the conditional effects (betas) of x on y conditional on values of z. I'm trying to produce a plot similar to the first shown in this link:

Re: [R] hatching posibility in Panel.Polygon

2010-07-25 Thread Deepayan Sarkar
On Sun, Jul 25, 2010 at 7:40 PM, HC hca...@yahoo.co.in wrote: Hatching with lines can be done in polygon function using density and angle arguments. Is similar possibility of hatching polygons available when using panel.polygon while trying to plot in panels using lattice? No. -Deepayan

[R] Specification Testing in Binary Choice Models

2010-07-25 Thread Amirreza Khosroshahi
Hi, First of all I'm sorry if my question is repeated. I could not find an answer to it after searching the mail archive or the whole net. I have estimated a binary choice (probit, to be specific) model using 'glm' function in R, and now I want to perform some diagnostic tests, among which

[R] data arranged by p-values

2010-07-25 Thread jd6688
Id cat1locationitem_values p-valuessequence a1111 3002737 0.196504377 0.011 a1121 3017821 0.196504377 0.052 a1131 3027730 0.196504377 0.023 a1141 3036220 0.196504377 0.04

[R] p-values calculation

2010-07-25 Thread jd6688
Id cat1locationitem_values p-valuessequence a1111 3002737 0.196504377 0.011 a1121 3017821 0.196504377 0.052 a1131 3027730 0.196504377 0.023 a1141 3036220 0.196504377 0.044 a1151 3053984

Re: [R] Loading Rdata files in a Package

2010-07-25 Thread Prof Brian Ripley
From ?data 2. files ending ‘.RData’ or ‘.rda’ are ‘load()’ed. '.Rdata' (l/c 'd') files are not supported (although on case-insensitive file systems they will work in _some_ circumstances, but only some. Without the sessionInfo() output we asked for in the posting guide, we can only

[R] NULL

2010-07-25 Thread Yuan Jian
hi, I have a simple problem. how can I test whether a variable is NULL? a = NULL if (a == NULL){ ... } it seems not work thanks YU [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] NULL

2010-07-25 Thread Peter Alspach
Tena koe Yu ?is.null HTH ... Peter Alspach -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Yuan Jian Sent: Monday, 26 July 2010 5:05 p.m. To: r-help@r-project.org Subject: [R] NULL hi, I have a simple problem. how