[R] INSUBSCRIBE

2023-01-24 Thread Lensing, Shelly Y
On Jan 24, 2023, at 5:00 AM, r-help-requ...@r-project.org wrote:  Send R-help mailing list submissions to r-help@ r-project. org To subscribe or unsubscribe via the World Wide Web, visit https: //urldefense. proofpoint.  com/v2/url?u=https-3A__stat. ethz.  ch_mailman_listinfo_r-2Dhelp&d=DwIGaQ

[R] dglm()

2020-12-11 Thread K Y via R-help
s from the deviance residuals, but I am not sure this is correct. Also I wonder if there is a better way doing this. Can anyone help? y <- -(z$observed_target)^(2-p) y <- y + (fitted(out))^(2-p) y <- y / (2-p) x <- (z$observed_target)^(2-p) x <- x - z$observed_target * ((fitted(ou

[R] Quotation marks hinder for loop

2017-10-13 Thread y tanaka
Dear mailing list members, My question is maybe very basic, but I could not find the solution. I would like to do the following things 1) colnames(V1)[2] <- par$V2[1] colnames(V2)[2] <- par$V2[2] colnames(V3)[2] <- par$V2[3] ... colnames(V37)[2] <- par$V2[37] 2) V1 <- V1[,-1] V2 <- V2[,-1] V3 <

[R] "How to convert .rdata file into .csv or something else?" [SOLVED:Corrected version2]

2017-08-18 Thread y tanaka
Dear mailing list members, Sorry for the repeated posting, but I have to add two more things. 1) I changed the .Rdata into .rdata in the subject to avoid misunderstanding of readers. 2) To save data in csv file; > write.csv(WV6_Data_R, "input/ch2/WV6_Data_R_v_2016_01_01.csv") Best regards, Yoh

[R] "How to convert .Rdata file into .csv or something else?" [SOLVED:Corrected version]

2017-08-18 Thread y tanaka
Dear mailing list members, A member found a problem of lines of codes in my last e-mail. I submit the correction to this mailing list as follows. In the final part of my last e-mail message, a csv file is created. But, I cannot open this file, so please ignore the following part.

[R] "How to convert .Rdata file into .csv or something else?" [SOLVED]

2017-08-17 Thread y tanaka
Dear mailing list members, Thank you for all members who gave me advice. This question is solved. I tried to create an object using the load function by analogy based on the read.csv function like this; > d <- load("~/docdis/input/ch2/WV6_Data_R_v_2016_01_01.rdata") but, load function cannot be

[R] How to convert .Rdata file into .csv or something else?

2017-08-17 Thread y tanaka
Dear mailing list members, I am a beginner of this community. I would like to analyze data in a .rdata file. I ran the following code, but the object "d" remained empty. d <- load("~/docdis/input/ch2/WV6_Data_R_v_2016_01_01.rdata") I would like to know how to convert this file format into .csv

[R] How to write an estimated seasonal ARIMA model from R output?

2017-06-20 Thread Y S
I'm trying to use the following command. arima (x, order = c(p,d,q), seasonal =list(order=c(P,D,Q), period=s) How can I write an estimated seasonal ARIMA model from the outputs. To be specifically, which sign to use? I know R uses a different signs from S plus. Is it correct that the model is: (

[R] Result differences in 32-bit vs. 64-bit point.in.polygon?

2015-05-29 Thread Lensing, Shelly Y
Is anyone aware of point.in.polygon giving different results for 32-bit vs. 64-bit R? Our OS is 64-bit Windows 7 Enterprise. I'm working with someone else's extensive R program and the final results are close but not exactly matching. We're thinking it might be something with the point.in.polygo

Re: [R] How to obtain nonparametric baseline hazard estimates in the gamma frailty model?

2013-11-04 Thread Y
t is much harder. > You'll notice that everyone does CDF curves for survival data ( > Kaplan-Meier = estimate of 1-CDF), but no one does histograms, which > estimate a density. That isn't because we wouldn't like density estimates. > > Terry T. > > > > On 11/04/

Re: [R] How to obtain nonparametric baseline hazard estimates in the gamma frailty model?

2013-11-04 Thread Y
Hi Dr. Therneau, Thanks very much for your kind help! Does survfit() just give me the survival curve? What I wanted is the baseline hazard estimates, i.e., lambda_{0} (t). How can I obtain this estimate from coxph()? Or using basehaz()? Thanks, YH On Mon, Nov 4, 2013 at 5:29 PM, Terry T

[R] Can I obtain baseline hazard estimates in the gamma frailty model by using coxph()?

2013-11-04 Thread Y
Hello, Does anyone know how to obtain nonparametric baseline hazard estimates in the gamma frailty model by using coxph()? I can easily get the other parameter estimates by using coxph() but don't know how to get the baseline hazard estimates from it. Thanks, YH [[alternative HTML versio

[R] How to obtain nonparametric baseline hazard estimates in the gamma frailty model?

2013-11-02 Thread Y
I can easily get the other parameter estimates by using coxph() but don't know how to get the baseline hazard estimates from it. Does anyone know how to obtain nonparametric baseline hazard estimates in the gamma frailty model? Thanks, YH [[alternative HTML version deleted]]

Re: [R] How to obtain restricted estimates from coxph()?

2013-10-16 Thread Y
Thanks very much for your help, Terry and Göran! As pointed out by Göran, the difficult part is that it's an open set. How to obtain a valid MLE in this case? Thanks, YH On Wed, Oct 16, 2013 at 9:55 AM, Göran Broström wrote: > > > On 2013-10-16 14:33, Terry Therneau wrote: > >> >> >> On

[R] How to obtain restricted estimates from coxph()?

2013-10-16 Thread Y
Hello, I'm trying to use coxph() function to fit a very simple Cox proportional hazards regression model (only one covariate) but the parameter space is restricted to an open set (0, 1). Does anyone know how to obtain an estimate in a particular parameter space by using coxph function? Or any othe

[R] How to obtain restricted estimates from coxph()?

2013-10-15 Thread Y
Hello, I'm trying to use coxph() function to fit a very simple Cox proportional hazards regression model (only one covariate) but the parameter space is restricted to an open set (0, 1). Can I still obtain a valid estimate by using coxph function in this scenario? If yes, how? Any suggestion would

[R] r-project, votre plateforme transfert de fichier

2012-06-01 Thread Y. Ledroit
r tout renseignement. Y. Ledroit Charg de clientle [8]Plateforme de Transfert de fichier Si ce message ne s'affiche pas correctement, [9]visualisez la version en ligne. Si vous ne s

[R] Symbols in graph

2012-01-04 Thread Y Nygård
Hi, Is there an easy way to add symbols to a line in a scatter plot, so that only a few symbols are added per line (a line drawn based on a large set of data points) , in order to distinguish several lines in one graph (not a symbol for each data point as is the default in plot()). Thanks a lot!

Re: [R] How to source a part of the file

2011-03-13 Thread Paul Y. Peng
2011 at 11:56 PM, Gabor Grothendieck < ggrothendi...@gmail.com> wrote: > On Sun, Mar 13, 2011 at 11:32 PM, Paul Y. Peng wrote: > > Many thanks to Jim Holtman and Gabor Grothendieck for your quick > responses. > > Jim's solution works beautifully for my tasks. Thanks. I

Re: [R] How to source a part of the file

2011-03-13 Thread Paul Y. Peng
11, 2011 at 4:53 PM, jim holtman wrote: > > You can do: > > > > source(readLines(yourFile)[10:20]) # lines 10-20 of the file > > > > On Fri, Mar 11, 2011 at 4:41 PM, Paul Y. Peng wrote: > >> I have a text file of R commands. Some times I only want to run a

[R] How to source a part of the file

2011-03-11 Thread Paul Y. Peng
I have a text file of R commands. Some times I only want to run a few lines of the R commands in an existing R session and wonder whether there is a simple way to do this. To run a few lines in a new session of R, I could use sed to pick up the lines from the file and pipe them into R. source() d

[R] Different results in glm() probit model using vector vs. two-column matrix response

2010-12-30 Thread Lensing, Shelly Y
data.frame(group, dose, ldose, n, r, p) SF <- cbind(success=d$r, failure=d$n - d$r) #80 record set-up dose2<-c(7,8,9,10,11) doserep<-sort(rep(dose2,8)) x<-c(doserep,doserep) log10x<-log10(x) y_U<-c(rep(0,8), 1, rep(0, 7), 1, 1, 1, rep(0,5), rep(1, 16)) y_M<-c(rep(0,24), rep(1,4), r

[R] Different results in glm() probit model using vector vs. two-column matrix response

2010-12-30 Thread Lensing, Shelly Y
data.frame(group, dose, ldose, n, r, p) SF <- cbind(success=d$r, failure=d$n - d$r) #80 record set-up dose2<-c(7,8,9,10,11) doserep<-sort(rep(dose2,8)) x<-c(doserep,doserep) log10x<-log10(x) y_U<-c(rep(0,8), 1, rep(0, 7), 1, 1, 1, rep(0,5), rep(1, 16)) y_M<-c(rep(0,24), rep(1,4), r

Re: [R] Question regarding R plot

2010-04-17 Thread Akito Y. Kawahara
do this. Sorry for the basic questions. On Sat, Apr 17, 2010 at 2:49 PM, David Winsemius wrote: > > On Apr 17, 2010, at 1:18 PM, David Winsemius wrote: > >> >> On Apr 17, 2010, at 12:45 PM, Charles C. Berry wrote: >> >>> On Sat, 17 Apr 2010, Akito Y. Kawahara

[R] Question regarding R plot

2010-04-17 Thread Akito Y. Kawahara
Hi, I am new to R, and have a quick question regarding an R script that I received from a kind colleague. I am trying to determine the "peak" (maximum value) of the graph that is plotted when executing the following. There is an input file called "rates_values.txt" which begins as: rateValue 0.37

[R] How to install old randomForest?

2010-01-13 Thread Chang, C-Y.
Hi all, I'm using windowsXP and R 2.10.0. I downloaded "randomForest 4.5-33.tar.gz" from its archive, but how do I make it into a installation ZIP file? Thanks, Ted __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help P

[R] henon map

2009-12-16 Thread x y
Hi, I would plot a Henon map: > plot(henon(start=rnorm(2), a=1.4, b=0.3, n.sample=2000, > n.transient=10),pch=".",cex=0.1) but give me some errors: Error in henon(start = rnorm(2), a = 1.4, b = 0.3, n.sample = 2000, n.transient = 10) : could not find function "checkVectorType" Error in plo

[R] kernel density estimation and classification

2009-11-02 Thread wk y
Hi, I am interested to use Kernel Density Estimation on bivariate data for multi-class classification. So far, I have managed to use the 'ks' package to plot the contours of the kernel density estimates based on 8-class training dataset with only 2 variables. However, I do not know how to m

[R] kernel density estimation and classification

2009-11-02 Thread wk y
Hi, I am interested to use Kernel Density Estimation on bivariate data for multi-class classification. So far, I have managed to use the 'ks' package to plot the contours of the kernel density estimates based on 8-class training dataset with only 2 variables. However, I do not know how

[R] splitting dataframe, assign to new dataframe, add new rows to new dataframe

2009-10-12 Thread wk y
Hi, all, My objective is to split a dataframe named "cmbine" according to the value of "classes". After the split, I will take the first instance from each class and bin them into a new dataframe, "df1". In the 2nd iteration, I will take the 2nd available instance and bin them into another new

[R] When using randomForest, what's the effect to "set.seed"?

2009-08-13 Thread Chang, C-Y.
Greetings, When reading the random forest manual by Liaw, in the examples "set.seed" is always used before building a forest. Does it matter if I don't set the seed? If I set a different seed manually each time I build a forest, will this give better randomness? Thank you all in advance! --

[R] R on Windows Server

2009-06-03 Thread Lensing, Shelly Y
We are starting the process for purchasing a server with Windows Server 2008 OS. We are mainly interested in storage for multiple users, but would like to have the capability to run R simulations on the server. Are there any issues we should be aware of for installing R on the server or with hav

[R] Lattice plot with an extra strip showing group weights

2009-04-01 Thread Jesse Y Cai
Dear r-help, How can I add a strip to show group weights using lattice package? For example, in the following code, I'd like to using "wt" variable in a trip to demonstrate the relative size of groups. (Following is just the simplest form to demonstrate the question. A conditional variable will

Re: [R] Problems with graphical devices, e.g., png(), pdf(): blurry graphical output

2008-12-17 Thread Y-H Chen
On Wed, Dec 17, 2008 at 3:06 AM, Martyn Plummer wrote: > The artefacts that you see are a normal result of using bitmap graphics > devices. I have tried to explain these below: Thanks very much for your explanations, MP; they were quite informative!! I recognize that others may feel differently

Re: [R] Problems with graphical devices, e.g., png(), pdf(): blurry graphical output

2008-12-17 Thread Y-H Chen
On Wed, Dec 17, 2008 at 12:54 AM, Prof Brian Ripley wrote: > Your PDF problems indicate a broken viewer. How were you viewing PDF? You are absolutely correct about the PDF files; I've since checked the PDF files in other viewers and have not been able to reproduce the problem. There was definite

[R] Problems with graphical devices, e.g., png(), pdf(): blurry graphical output

2008-12-16 Thread Y-H Chen
On my current home system, I am getting undesirable output from graphical devices such as png() and pdf(). The graphical output is blurry. I haven't experienced the problem on other systems. As you will see from the attached text file (more information on this file below), the problem does not occu

[R] Hi~problem with the two sample test: ks2Test in the package of fbasics

2008-07-06 Thread l y
Hi everyone, when I use the two sample Kolmogorov¨CSmirnov ks2Test like this: x=read.table("e:/x.txt") y=rstable(1000,alpha,beta,gamma,delta) I alway get results as follows: Warning messages: 1: In ks.test(x = x, y = y, alternative = "two.sided") : cannot compute correct