It doesn't mean anything out of context.
Would you care to elaborate on precisely what is puzzling you?
From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of
Simon Tian [simon...@gmail.com]
Sent: 02 August 2009 14:50
To: r-help@r
Hi R users,
I really want to know what exactly ".[foo]" means.
Thanks in advance. -Simon
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide ht
zhu yao wrote:
Thx for your reply.
In this example, age was transformed with rcs. So the output was different
between f and summary(f).
If I need to publicate the results, how do I explation the hazard ratio of
age?
David explained this. Nonlinearity in age does not complicate the
explanation
Thx for your reply.
In this example, age was transformed with rcs. So the output was different
between f and summary(f).
If I need to publicate the results, how do I explation the hazard ratio of
age?
2009/8/1 David Winsemius
>
> On Jul 31, 2009, at 11:24 PM, zhu yao wrote:
>
> Could someone ex
Apologies to list: Should have "replied to all".
--
DW
Begin forwarded message:
> From: David Winsemius
> Date: August 1, 2009 3:02:58 PM EDT
> To: Meenu Sahi
> Subject: Re: [R] Add columns in a dataframe and fill them from
> another table according to a criteria
>
>
> On Aug 1, 2009, at
It says cairo is not available. (Once you read this in a proper
monospaced font, anyway.)
On Aug 1, 2009, at 4:27 PM, Michael Roessler wrote:
Thank you, David.
Cairo is installed and loaded.
cairoDevice is installed and loaded.
RGtk2 is installed and loaded (which installed GTK+)
yet I sti
Hi all,
I am trying to put the summary output of vglm{VGAM} into a Latex table using
mtable(Memisc}. I think I solved the problem regarding to the fact that vglm
produces a "vglm" object which is not accepted by mtable by default defining a
getSummary.vglm function.
However summary.vglm adds
By any chance is anyone aware of an R package that contains a representation of
the International Geomagnetic Reference Field (IGRF)?
http://www.ngdc.noaa.gov/IAGA/vmod/igrf.html
I've tracked down some Fortran and C code for the IGRF-10, and possibly
IGRF-11, and was hoping to avoid an awkward
Sending me a reproducible example and the results of sessionInfo() would help.
Max
On Sat, Aug 1, 2009 at 5:13 PM, Emmanuel
Charpentier wrote:
> Dear list, dear Max,
>
> I a currently working on a report. I'm writing it with OpenOffice.org
> and odfWeave. I'm working increentally : I write a bit,
2009/7/27 Robert Smith
> Hi,
>
> I am using rpart decision trees to analyze customer churn. I am finding
> that
> the decision trees created are not effective because they are not able to
> recognize factors that influence churn. I have created an example situation
> below. What do I need to do t
Thank you. That clarified a great many things.
cheers,
Rolf
##
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
__
R-help@r-project.
Mark Na wrote:
>
> Dear R-helpers,
> I would like to compare the fit of two models, one of which I fit using
> lm()
> and the other using glm(family=poisson). The latter doesn't provide
> r-squared, so I wonder how to go about comparing these
> models (they have the same formula).
>
> Thanks v
On Fri, Jul 31, 2009 at 8:49 AM, Rainer M Krug wrote:
> My question: how can I get the filename of the pdf from the device
> before it is closed?
I've also looked for this and couldn't find a way. I had a similar
use, where I wanted to get an R transcript with embedded plots in
emacs (see prettyR
Thiemo Fetzer wrote:
>
> Dear Group,
>
> I am an economics student starting with PhD work in London. As preparation
> I
> would like to get to know R a little bit better. For Stata there are tons
> of
> books, however, can you recommend a book for R?
>
> I have some substantiated econometrics
Dear list, dear Max,
I a currently working on a report. I'm writing it with OpenOffice.org
and odfWeave. I'm working increentally : I write a bit, test
(interactively) some ideas, cutting-and-pasting code to the Ooo report
when satisfied with it. I the process, I tend to recompile the .odt
source
Hello,
I have questions regarding penalized Cox regression using survival
package (functions coxph() and ridge()). I am using R 2.8.0 on Ubuntu
Linux and survival package version 2.35-4.
Question 1. Consider the following example from help(ridge):
> fit1 <- coxph(Surv(futime, fustat) ~ rx + rid
Thank you, David.
Cairo is installed and loaded.
cairoDevice is installed and loaded.
RGtk2 is installed and loaded (which installed GTK+)
yet I still get false for cairo:
> capabilities()
jpeg png tifftcltk X11 aqua http/ftp sockets
TRUE TRUE TRUE TRUE
Hello,
On 7/31/09, mau...@alice.it wrote:
> When I need to stop a running R script on Windows or Mac I just use the
> key which kills the current script and returns the control to R
> interpreter.
> But when I run R from JGR the is useless as well as the other
> available keyboard keys.
>
Hi, all,
I am wondering if there is any package doing lda and qda which allows
assuming diagonal covariance matrices. I checked the lda function in MASS,
and it seems it does not support this.
Thanks,
Cindy
[[alternative HTML version deleted]]
__
Dear R-users,
I am trying to produce trellis (png, or jpeg) graphs with transparent
background, but I cannot manage to make that happen. I tried to play around
with themes but to no avail. Any advise on the following example will be
greatly appreciated:
Thank you
Sebastien
library(latti
Hello,
If you do
my.tree <- rpart(cancel ~ experience)
and then you check
my.tree$frame
you will note that the complexity parameter there is 0.
Check ?rpart.object to get a description of what this output means. But
essentially, you will not be able to break the leaf unless you set a
complex
Hi, all,
I am wondering if there is any package doing lda and qda which allows
assuming diagonal covariance matrices. I checked the lda function in MASS,
and it seems it does not support this.
Thanks,
Cindy
[[alternative HTML version deleted]]
__
Hi, all,
I am wondering if there is any package doing lda and qda which allows
assuming diagonal covariance matrices. I checked the lda function in MASS,
and it seems it does not support this.
Thanks,
Cindy
[[alternative HTML version deleted]]
__
If you have RExcel (and the necessary infrastructure, i.e.
statconnDCOM and possibly rcom) installed, the following VBA
macro will do the trick.
-=-=-=-=-=
Option Explicit
Sub TransferAllSheetsAsDataframes(wb As Workbook)
Dim ws As Worksheet
RInterface.StartRServer
For Each ws In wb.S
So as not to leave this thread dangling the problem was
character fields where numeric fields had been expected.
On Sat, Aug 1, 2009 at 11:32 AM, stephen sefick wrote:
> I have a time series from 1933-2005 of precipitation at Fayetteville
> NC. I get the following error messages when I plot the z
Hi Christian:
Thanks a lot for your continuous help. This time you got the code right !
That's what I wanted :)
Great job!
Thanks & Regards,
Sauvik
On Sat, Aug 1, 2009 at 10:30 PM, Poersching wrote:
> Hey,
> oh yes, but now I have realy the ultimate solution... ;-)
> Here it comes:
>
> a= c("A
Dear R users
My apologizes for not writing in the correct format due to my ignorance. In
the future I will write more clearly. I hope to contribute to the R
community in the process of picking up the language professionally.
I have now written the R code which is attached in a notepad file. I've
si
On Jul 31, 2009, at 3:33 AM, Madhavi Bhave wrote:
Dear R Helpers
Please guide me how one can estimate the parameters of Logistic
Distribution and 3 Parameter Log-logistic distribution for a given
data.
data <-
c(2987.43,2990.12,3023.52,2964.79,3019.60,3051.07,3080.16,2944.15,3035.19,302
On Sat, Aug 1, 2009 at 7:26 AM, Gary Lewis wrote:
> I could use some advice regarding xyplot.
>
> I've got 2 time series. Both cover approximately the same period of
> time (ie, 1940 to 2009). But one series has annual data and the other
> has monthly data. One refers to university enrollment; the
On Jul 30, 2009, at 11:50 PM, Steve Jaffe wrote:
I can do this by writing (and reading) the file according to some
format of
my own devising, but I'm wondering if there is a built-in way to
write and
then restore a matrix with not only the dimnames (which
write.table/read.table can preser
Hey,
oh yes, but now I have realy the ultimate solution... ;-)
Here it comes:
a= c("A1","A2","A3","A4","A5")
b= c("B1","B2","B3")
c= c("C1","C2","C3","C4")
d= c("D1","D2")
e= c("E1","E2","E3","E4","E5","E6","E7","E8")
DataArray_1 = array(c(rnorm(240)),dim=c(length(a),length(b),
length(d),length(
On Jul 31, 2009, at 2:35 PM, Laura S. wrote:
I am relatively new to R, and would appreciate any suggestions you
may have.
I noticed on a Mac the functions' arguments are listed at the bottom
of the R console.
Is it possible to add such a feature to a Windows R console? I have
Windows X
If you only have to use y once then you can use delayedAssign. This
will assign a promise and the promise will not be evaluated until its
used:
> x
Error: object 'x' not found
> y
Error: object 'y' not found
> x <- y
> x <- 1
> delayedAssign("y", x)
> x <- 2
> y
[1] 2
If that's not good enough yo
On Aug 1, 2009, at 9:52 AM, Meenu Sahi wrote:
Deare R users
I am new to R.
What I want to do is explained below;-
I have table called States.Prob which is given below:-
This table gives the probabilities of the changes in the swap curve
depending on the state of the swap curve. I want to put t
I have a time series from 1933-2005 of precipitation at Fayetteville
NC. I get the following error messages when I plot the zoo series.
Any help would be appreciated. If you need the data I can dput it or
send the csv. I didn't include it here because I didn't want to clog
up anybodies email acc
You can assign the x variable like this:
y <- x <- 17
y <- x <- 4
On Sat, Aug 1, 2009 at 11:55 AM, Daniel Haase wrote:
> Hi Everyone,
>
> is there the possibility in R to assign a variable to be an alias of
> another one?
> Example:
>
> x <- 17
> # assign y to be an alias of x
> y # returns 1
Hi Everyone,
is there the possibility in R to assign a variable to be an alias of
another one?
Example:
x <- 17
# assign y to be an alias of x
y # returns 17
x <- 4
y # returns 4
Daniel
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mai
In the last statement you can replace plot with xyplot (although both work).
On Sat, Aug 1, 2009 at 10:37 AM, Gabor
Grothendieck wrote:
> Try this using the same ts.sim and ts.sim2 from my previous post.
> https://stat.ethz.ch/pipermail/r-help/2009-August/206697.html
>
> library(zoo)
> library(lat
Hi Christian:
Many thank for the code.
But I am afraid that your code still has a problem in terms of providing
correct correlation. For example, if you look at the correlation between
DataArray_1["A2","B1","D1",] and DataArray_2["A2","C1","D1",] after running
your code, you will notice that this
Try this using the same ts.sim and ts.sim2 from my previous post.
https://stat.ethz.ch/pipermail/r-help/2009-August/206697.html
library(zoo)
library(lattice)
plot(na.approx(cbind(as.zoo(ts.sim), as.zoo(ts.sim2))), screen = 1,
col = c("black", grey(0.5)))
On Sat, Aug 1, 2009 at 10:26 AM,
I could use some advice regarding xyplot.
I've got 2 time series. Both cover approximately the same period of
time (ie, 1940 to 2009). But one series has annual data and the other
has monthly data. One refers to university enrollment; the other to
unemployment rates. Both are currently in the same
Deare R users
I am new to R.
What I want to do is explained below;-
I have table called States.Prob which is given below:-
This table gives the probabilities of the changes in the swap curve
depending on the state of the swap curve. I want to put these probabilities
in my dataframe mydata(given af
2009/8/1 Felix Andrews
> Um, it sounds as if you are trying to install glade-3.4.3-win32.zip
> into R as a package... but it is not an R package!!
>
> GTK+/Glade is a system library to be installed into Windows.
> You should download the .exe (not the .zip)
> http://downloads.sourceforge.net/glad
On Jul 31, 2009, at 6:41 PM, Michael Roessler wrote:
How may one save a graphic as svg on Windows? The svg() command is
recognized and functions well on Linux, etc., but not on Windows, it
seems.
I'm trying to use Hadley Wickam's ggplot2 and I would like to be
able to
save created charts as
On Sat, 1 Aug 2009, Thiemo Fetzer wrote:
Dear Group,
I am an economics student starting with PhD work in London. As preparation I
would like to get to know R a little bit better. For Stata there are tons of
books, however, can you recommend a book for R?
Of course, I have to recommend our boo
On Jul 31, 2009, at 2:55 PM, PDXRugger wrote:
I must apoligize, as i want clear of what i wanted to occur. i dont
want to
count the occurences but rather recode them. I am trying to replace
all of
the values with the new coded values in Person_CAT. SO NP <- c(1,
1, 2,
1, 1, 2, 2,
How about Kleiber, C. & Zeileis, A. Applied Econometrics with R Springer, 2008?
Ronggui
2009/8/1 Thiemo Fetzer :
> Dear Group,
>
> I am an economics student starting with PhD work in London. As preparation I
> would like to get to know R a little bit better. For Stata there are tons of
> books, h
Um, it sounds as if you are trying to install glade-3.4.3-win32.zip
into R as a package... but it is not an R package!!
GTK+/Glade is a system library to be installed into Windows.
You should download the .exe (not the .zip)
http://downloads.sourceforge.net/gladewin32/gtk-dev-2.12.9-win32-2.exe
an
On Jul 31, 2009, at 11:24 PM, zhu yao wrote:
Could someone explain the summary(cph.object)?
The example is in the help file of cph.
n <- 1000
set.seed(731)
age <- 50 + 12*rnorm(n)
label(age) <- "Age"
sex <- factor(sample(c('Male','Female'), n,
rep=TRUE, prob=c(.6, .4)))
cens <- 1
Better ideas should prevail. There is now a wiki page at
http://wiki.r-project.org/rwiki/doku.php?id=rugs:r_user_groups.
It is not yet fully populated. (David Smith's blog at REvolution
Computing mentions more groups.)
JN
__
R-help@r-project.org ma
Dear Group,
I am an economics student starting with PhD work in London. As preparation I
would like to get to know R a little bit better. For Stata there are tons of
books, however, can you recommend a book for R?
I have some substantiated econometrics knowledge, so it should be more a
how-to boo
Bernd Kreuss wrote:
sorry for the eventual double posting, but i got a strange error from a
versatel(???) server about not enough quota when replying to the message
Yes, I had one of those too (see below), but notice that the error
occurs after the mail has left the mailing list server at ETHZ
Why not! Looks like there were several conversations going on
independently at UseR about this.
I'll put up a page and then ask Martin to adjust the link.
JN
Friedrich Leisch wrote:
On Fri, 31 Jul 2009 06:45:38 -0400,
Prof John C Nash (PJCN) wrote:
> Further to my posting about R UG mail
On Jul 31, 2009, at 4:46 PM, liujb wrote:
Dear R users:
I have a vector of dates as follows:
t <- c("2007-01-05", "2007-05-14", "2007-12-28", "2008-01-09",
"2008-04-24",
"2009-02-14")
I'd like to calculate number of days between those dates (time
interval).
How to do it?
That is not
Hi,
The document helps a lot thanks. I need to know how to work with Hadoop and
R in a parallel clsuter environment.
HIVE is a new system on top of Hadoop that uses a SQL derivative to query
it. http://hadoop.apache.org/hive/
Regards,
Ajay
On Fri, Jul 31, 2009 at 7:23 PM, Avram Aelony wrot
HI
Thanks for all the advice, unfortunately I am unable to install the
suggested fix - error message as follows:
Error in gzfile(file, "r") : cannot open the connection
In addition: Warning message:
In gzfile(file, "r") :
cannot open compressed file 'glade-3.4.3-win32-1/DESCRIPTION', probable
> On Fri, 31 Jul 2009 06:45:38 -0400,
> Prof John C Nash (PJCN) wrote:
> Further to my posting about R UG mailing lists etc., and David Smith's
> post about the list he is maintaining (I was aware of his blog, but not
> that he was updating -- good show), I'm in communication with
sorry for the eventual double posting, but i got a strange error from a
versatel(???) server about not enough quota when replying to the message
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
mau...@alice.it wrote:
> I wonder whether there is a more gentle way to stop an R script running on
> top of JGR aother than ... unplugging the power cord.
there must be a bug in JGR on Lunux. Clicking the stop button should
stop the script, clicking it here on my linux machine will immediately
Try this,
formatC(d %% 1e5, width=5, flag = "0", mode="integer")
[1] "00735" "02019" "04131" "04217" "04629" "04822" "10115" "11605" "14477"
[10] "15314" "15438" "19040" "19603" "22735" "22853" "23415" "24227" "24423"
HTH,
baptiste
2009/7/31 PDXRugger :
>
>
> I would like to recreate "data"
Try this:
# two simulated series
set.seed(123)
ts.sim <- arima.sim(list(order = c(1,1,0), ar = 0.7), n = 70)
ts.sim <- ts(c(ts.sim), start = 1940)
ts.sim2 <- arima.sim(list(order = c(1,1,0), ar = 0.7), n = 12*70)
ts.sim2 <- ts(c(ts.sim2), start = 1940, freq = 12)
# plot
plot(ts.sim2, type = "l",
Mark Na gmail.com> writes:
>
> Dear R-helpers,
> I would like to compare the fit of two models, one of which I fit using lm()
> and the other using glm(family=poisson). The latter doesn't provide
> r-squared, so I wonder how to go about comparing these
> models (they have the same formula).
>
>
I would like to recreate "data" so that only the last 5 digits of the below
data are inlcuded as data so 200502019 would become 02019. Any ideas.
data=c(200500735,
200502019,
200504131,
200504217,
200504629,
200504822,
200510115,
200511605,
200514477,
200
your name is annoying.
On Fri, Jul 31, 2009 at 2:01 PM, RR! wrote:
>
> This code works:
>
> x<-letters[1:6]
> ycols<-23:28
> xcols<-rep(c(3,4,5,8),each=length(ycols))
>
> somertime<-function(i,j)somers2(Pred_pres_a_indpdt[,i,,], population[,j])
> results<-mapply(somertime,xcols,ycols)
>
Dear R users:
I have a vector of dates as follows:
t <- c("2007-01-05", "2007-05-14", "2007-12-28", "2008-01-09", "2008-04-24",
"2009-02-14")
I'd like to calculate number of days between those dates (time interval).
How to do it?
Thank you,
Julia
--
View this message in context:
http://www.n
I could use some advice.
I've got 2 time series. Both cover approximately the same period of
time (ie, 1940 to 2009). But one series has annual data and the other
has monthly data. One refers to university enrollment; the other to
unemployment rates. Both are currently in the same data frame.
I'
I must apoligize, as i want clear of what i wanted to occur. i dont want to
count the occurences but rather recode them. I am trying to replace all of
the values with the new coded values in Person_CAT. SO NP <- c(1, 1, 2,
1, 1, 2, 2, 1, 4, 1, 0, 5,
+ 3, 3, 1, 5, 3, 5, 1, 6, 1,
67 matches
Mail list logo