[R] R2wd

2011-02-18 Thread rookie r user
Hi all, I'm currently trying to get accustomed to R and some of its packages, thus need some help for a package called R2wd. As I am trying to use the wdGET() function I'm getting the following message: Error in if (!(tmp[["ActiveDocument"]][["Name"]] == filename)) tmp$Open(paste("path", :

[R] svydesign syntax

2010-07-22 Thread R user
This message is for those familiar with the survey package. I need to fit a weighted Cox model to accommodate the sampling weights as I have a case-control study with controls sampled at random from a database in a ratio 2:1 to cases (whom were all sampled). I want to make sure I am using the righ

Re: [R] calibration and validation for svycoxph

2010-06-10 Thread R user
Hi Dr. Lumley, Sorry about the succession of the 2 messages. It wasn't intended. This is my first post to the forum and I first signed up to Nabble and submitted the post and later got the message from Nabble that the post has not been accepted by the R forum and that I need separate subscription

[R] calibration and validation for svycoxph

2010-06-09 Thread R user
Hello, This post is for Dr. Thomas Lumley or anybody familiar with the survey package. I am estimating a proportional hazards model with weights using svycoxph. Are there functions already built in the survey package that allow me to do validation and calibration of the model? Thanks -- View t

[R] Calibration and validation for svycoxph

2010-06-09 Thread R user
Hello, This post is for Dr. Thomas Lumley or anybody familiar with the survey package. I am estimating a proportional hazards model with weights using svycoxph. Are there functions already built in the survey package that allow me to do validation and calibration of the model? Thanks -- View th

[R] 3d cloud plot with point size reflecting variable value

2009-03-31 Thread R User R User
Hello all, I'm using the cloud function to plot the iris data as per the document: http://www.stat.ucl.ac.be/ISpersonnel/lecoutre/stats/fichiers/_gallery.pdf I'd like to change the point size to reflect a fourth variable, as done here http://www.cis.hut.fi/projects/somtoolbox/download/pics2/shotvs

Re: [R] including tabular information with a plot in R Graphics

2009-03-06 Thread R User R User
very good example Thanks again, Richie 2009/3/5 Eik Vettorazzi > Hi Richie, > have a look at textplot() from the gplots-package. > hope, it helps! > > R User R User schrieb: > >> Hi all, >> I have a presentation problem that I cannot find a solution to in the >

[R] including tabular information with a plot in R Graphics

2009-03-05 Thread R User R User
Hi all, I have a presentation problem that I cannot find a solution to in the documetnation. I have a nice barplot. Below this I would also like a table with some information relating to the plot. My idea was to have the plot and table on the same graphics window so I can output them as an image fi

[R] barplot with specific order of x axis labels

2009-03-02 Thread R User R User
Hi all, I'd appreciate your help with this problem. I need to plot a barplot with the categories in a specific order. My data might be: hours Freq AN 10 MO 14 LU 30 I need the categories to be in the order: MO LU AN Is there some way to pass sort the dataset into this order so that

[R] vertically aligned X axis labels disappear off R Graphics window

2009-02-25 Thread R User R User
Hi guys, I'm evaluating R for basic data exploration. I produce a bar plot of the data, with the x axis labels aligned vertically. However, the start of labels longer than about 10 characters are cut off by the bottom of the graphics window. I'd appreciate your help in properly spacing the space a

[R] multiple levels of nesting with trellis plots

2009-02-17 Thread R User R User
Hi guys, I have a tricky problem that I'd appreciate your help with. I have two categorical variables, say varA and varB and an associated frequency Freq for combinations of the levels of varA and varB. This was created with a table() call. I'd now like to make panel plots of the frequency. I can

[R] how to obtain p values from an ANOVA result

2009-02-13 Thread R User R User
Hi all, I'm tryint to turn my ANOVA result from anova(model) in to p values. The default output is: term ; Df ; Deviance ; resid Df; Resid. Dev Is there a way to add p values to this output so the significance of the terms can be easily determined? Thanks in advance. Richie [[alternativ

[R] barplot() x axes are not updated after removal of categories from the dataframe

2009-02-12 Thread R User R User
Hi all, I'd be grateful for your help. I am a new user struggling with a barplot issue. I am plotting categories (X axis) and their mean count (Y axies) with barplot(). The first call to barplot works fine. I remove records from the dataframe using final=[!final$varname == "some value",] I echo

[R] Error in storage when attempting to run GLM

2009-02-11 Thread R User R User
Hello, I'd be very grateful for help with the following. I attempt to run a basic GLM as follows: basic_model=glm(factor(A$b) ~ factor(A$c) ) variables b and c are text values and their class is factor. they have no missing values. I get the error: Error: NA/NaN/Inf in foreign function call (arg

[R] Help on computing Geary's C statistic to test for Spatial Autocorrelation

2009-02-08 Thread R User
Dear Users: I have been trying to use the geary.test() function in *R*, but am having slight difficulty understanding how I am to apply it in my context. I have 2 matrices: 1) *n x p* matrix of *n* observations with *p* measurements each. It may be noted that this matrix has a spatial dimension t