[R] install packages automatically

2007-09-10 Thread Wensui Liu
Dear Listers, I am a little tired of installing all packages I want every time when I instill a new version of R. Say, if I have a list of packages I need to use, is it possible to tell R to install them all for me automatically rather than I install them one by one? Thx. _

[R] off-topic: better OS for statistical computing

2007-09-10 Thread Wensui Liu
Good morning, everyone, I am sorry for this off-topic post but think I can get great answer from this list. My question is what is the best OS on PC (laptop) for statistical computing and why. I really appreciate your insight. Have a nice day. __ R-help@

[R] sqldf rocks

2007-09-07 Thread Wensui Liu
Man, I love this package and the guy who contributes it! -- === "I am dying with the help of too many physicians." - Alexander the Great, on his deathbed ======= WenSui Liu (http://spaces.msn.com/statco

Re: [R] size limitations in R

2007-08-31 Thread Wensui Liu
__ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- =

Re: [R] nnet 10-fold cross-validation

2007-07-23 Thread Wensui Liu
info/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- === "I am dying with the help of too many physicians." - Alexander the Great, on his d

Re: [R] package with roc, sensitivity, specificity, kappa etc

2007-07-01 Thread Wensui Liu
t; > Best wishes Fredrik L > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible co

Re: [R] method of rpart when response variable is binary?

2007-06-15 Thread Wensui Liu
ist > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.c

Re: [R] "R is not a validated software package.."

2007-06-08 Thread Wensui Liu
s://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > __ > R-help@stat.math.ethz.ch mailing list >

Re: [R] "R is not a validated software package.."

2007-06-08 Thread Wensui Liu
_ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy stati

Re: [R] "R is not a validated software package.."

2007-06-08 Thread Wensui Liu
p://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __ R-help@stat

Re: [R] Tools For Preparing Data For Analysis

2007-06-08 Thread Wensui Liu
; ______ > > R-help@stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, repro

Re: [R] Neural Net. in R

2007-06-06 Thread Wensui Liu
osting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __ R-help@sta

Re: [R] Import data from Access

2007-05-31 Thread Wensui Liu
ttp://www.nabble.com/Import--data-from-Access-tf3847342.html#a10896743 > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-projec

Re: [R] Excel data into R

2007-05-14 Thread Wensui Liu
g guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __ R-help

Re: [R] Read SAS data into R

2007-05-11 Thread Wensui Liu
tics Vanderbilt University > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-c

Re: [R] Read SAS data into R

2007-05-10 Thread Wensui Liu
ad the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog)

Re: [R] Neural Nets (nnet) - evaluating success rate of predictions

2007-05-07 Thread Wensui Liu
t.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know

Re: [R] Reasons to Use R

2007-04-11 Thread Wensui Liu
: > > > > http://www.sas.com/corporate/report05/annualreport05.pdf > > > > Somebody needs to send SAS a copy of Tufte or Cleveland. > > > > I have to go and rest my eyes now... ;-) > > > > Regards, > > > > Marc &g

Re: [R] Reasons to Use R

2007-04-10 Thread Wensui Liu
ap and datasets > only medium sized it did not compete well, I guess it was just a bit too > ahead of its time. > > Hope this helps, > > > > -- > Gregory (Greg) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > [EMAIL PROTECTED] > (801) 408-81

Re: [R] Reasons to Use R [Broadcast]

2007-04-09 Thread Wensui Liu
; and provide commented, minimal, self-contained, reproducible code. > > > > > > > > > -- > Notice: This e-mail message, together with any attachments,...{{dropped}} > >

Re: [R] How to choose the df when using GAM function?

2007-04-02 Thread Wensui Liu
___ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lous

Re: [R] Problem dropping rows based on values in a column

2007-03-25 Thread Wensui Liu
> (Fax) 410-605-7913 (Please call phone number above prior to faxing) > [EMAIL PROTECTED] > > Confidentiality Statement: > This email message, including any attachments, is for the so...{{dropped}} > > __ > R-help@stat.math.ethz.ch mailing list > https://s

Re: [R] Problem dropping rows based on values in a column

2007-03-25 Thread Wensui Liu
___ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statist

[R] any way to append a table in SQL server

2007-03-20 Thread Wensui Liu
Dear Lister, Is there an interface in R with SQL server that allows me to append records to table in the DB? Might I do that using RODBC? Thanks a lot. -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog

[R] any simple way to put comment with multiple lines

2007-03-18 Thread Wensui Liu
Dear Lister, I understand I can put '#' to put comment line by line. But is there a way to put comment with multiple lines without having to put '#' on the every line? Thanks. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] plot.randomForest default mtry values

2007-03-15 Thread Wensui Liu
__ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > --

Re: [R] read.table for a subset of data

2007-03-11 Thread Wensui Liu
t; +1 513 646 9390 > > What is the problem you are trying to solve? > > [[alternative HTML version deleted]] > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE

Re: [R] read.table for a subset of data

2007-03-11 Thread Wensui Liu
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog)

Re: [R] use nnet

2007-03-09 Thread Wensui Liu
> > thanks, > > Aimin Yan > > > At 12:39 PM 3/9/2007, Wensui Liu wrote: > >AM, > >Sorry. please ignore the top box in the code. It is not actually a cv > >validation but just a simple split-sample validation. > >sorry for confusion. > > > >O

Re: [R] Extracting text from a character string

2007-03-09 Thread Wensui Liu
the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __

Re: [R] use nnet

2007-03-09 Thread Wensui Liu
AM, Sorry. please ignore the top box in the code. It is not actually a cv validation but just a simple split-sample validation. sorry for confusion. On 3/9/07, Wensui Liu <[EMAIL PROTECTED]> wrote: > AM, > I have a pieice of junk on my blog

Re: [R] use nnet

2007-03-09 Thread Wensui Liu
this before? > thanks, > > Aimin > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/p

Re: [R] Heteroskedastic Time Series

2007-03-05 Thread Wensui Liu
and Stats > Heriot Watt University > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commente

Re: [R] [friday topic]: what exactly is statistical computing

2007-03-02 Thread Wensui Liu
is ready to use. > > I have seen you on this list for a while. You already know all this. I > am not sure why you are asking this question. > > Roger > > -Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Wensui Liu > Se

[R] [friday topic]: what exactly is statistical computing

2007-03-02 Thread Wensui Liu
Dear List, on www.r-project.org, the title says 'The R Project for Statistical Computing'. but what exactly is the definition of statistical computing? __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Another newbie book recommandation question

2007-03-01 Thread Wensui Liu
Health > Johns Hopkins University > 111 Market Place, Suite 310 > Baltimore, Maryland 21202 > 410-659-6139 > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guid

Re: [R] question regression trees

2007-02-28 Thread Wensui Liu
the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __

Re: [R] Help on GAM

2007-02-28 Thread Wensui Liu
gt; __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. &g

Re: [R] Datamining-package-?

2007-02-27 Thread Wensui Liu
the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __

Re: [R] rpart minimum sample size

2007-02-27 Thread Wensui Liu
\!/ >^<**>^< \!/ \!/ > > > [[alternative HTML version deleted]] > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/post

Re: [R] Partial whitening of time series?

2007-02-26 Thread Wensui Liu
p > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __

Re: [R] If you had just one book on R to buy...

2007-02-25 Thread Wensui Liu
t; -- > Julien > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, repr

Re: [R] Chi-Square test

2007-02-22 Thread Wensui Liu
gt; PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) ___

Re: [R] Randomly extract rows from a data frame

2007-02-18 Thread Wensui Liu
t.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little

Re: [R] How to add obj to a list?

2007-02-15 Thread Wensui Liu
ide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __ R-help@stat.math.ethz.ch mailing list https://

Re: [R] rpart tree node label

2007-02-14 Thread Wensui Liu
uide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __ R-help@stat.math.ethz.ch mailing list https://s

Re: [R] Help neural network in R

2007-02-12 Thread Wensui Liu
EASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) _

Re: [R] SQL statements (directly) in R

2007-02-12 Thread Wensui Liu
__ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >

Re: [R] Linking R with Microsoft SQL Server / Client

2007-02-12 Thread Wensui Liu
/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __

Re: [R] R in Industry

2007-02-06 Thread Wensui Liu
[[alternative HTML version deleted]] > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minima

Re: [R] Query about merging two tables

2007-02-06 Thread Wensui Liu
a > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. &

Re: [R] rpart

2007-02-05 Thread Wensui Liu
ate MSE and CC as > prediction accuracy measure. > Someone told me I should not trust one tree and should do bagging. > Is this correct? > Aimin > > At 03:11 PM 2/5/2007, Wensui Liu wrote: > >are you sure you are using the same setting, tree size, and so on? > > >

Re: [R] rpart

2007-02-05 Thread Wensui Liu
mented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog) __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listi

Re: [R] Loop with string variable AND customizable "summary" output

2007-01-29 Thread Wensui Liu
time). > > In alternative, if I was able to see it, I could modify the source code of > the function "summary", but I am not able to see its (line by line) code. Any > idea? > > Or may be a customizable regression output already exists? > > Thanks really a lot! > > Carlo > > _

Re: [R] comparing random forests and classification trees

2007-01-28 Thread Wensui Liu
> __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproduci

Re: [R] nnet question

2007-01-28 Thread Wensui Liu
gt; R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happ

Re: [R] question about nnet

2007-01-28 Thread Wensui Liu
0 0 > 149.09400 inward TRUE > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > an

[R] how to create daily / weekly ts object?

2007-01-26 Thread Wensui Liu
Dear All, Monthly and Quarterly ts obj. is easy to understand. But I couldn't find an example in R manual how to create daily or weekly ts object. Could you please shed some light on it? I really appreciate it. __ R-help@stat.math.ethz.ch mailing list h

Re: [R] New to R

2006-12-31 Thread Wensui Liu
fo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu A lousy statistician who happens to know a little programming (http://spaces.msn.com/statcompute/blog)

Re: [R] OT: any recommendation for scripting language

2006-12-30 Thread Wensui Liu
please give such an example? Wish you all have a happy new year! wensui On 12/23/06, Wensui Liu <[EMAIL PROTECTED]> wrote: > Right now, I am using SAS and S+/R. As a new year resolution, I am > planning to learn a scripting language. > > from statisticians' point of view, whic

Re: [R] how to transform string to variable name in a fuction?

2006-12-26 Thread Wensui Liu
that loop is not used as frequently as in > other script language (e.g. bash, perl). So, If you have any other smart > means do this more efficiently, please let me know, I would appreciate your > kindness. > > [[alternative HTML version deleted]] > > ______ > R-help@stat.m

[R] OT: any recommendation for scripting language

2006-12-23 Thread Wensui Liu
Right now, I am using SAS and S+/R. As a new year resolution, I am planning to learn a scripting language. from statisticians' point of view, which scripting language is worth to learn, perl, python, or any other recommendation? (Most likely, I will be learning it in windows.) Since I am not in re

Re: [R] X-fold cross validation function for discriminant analysis

2006-11-16 Thread Wensui Liu
ead the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu (http://spaces.msn.com/statcompute/blog) Senior Decision Support Analyst Cincinnati Children Hospital Medical Center

Re: [R] Comparison between GARCH and ARMA

2006-11-07 Thread Wensui Liu
__ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducibl

Re: [R] Automatic File Reading [Broadcast]

2006-10-28 Thread Wensui Liu
Andy, First of all, thanks for your solution. When I test your code, it doesn't work. I am not sure if I miss something. Here is the code I tested: flist<-list.files(path = file.path(, "c:\\"),pattern="[.]csv$") csvlist<-lapply(flist, read.csv, header = TRUE) Here is the error: Error in file(fi

Re: [R] R & gams

2006-10-27 Thread Wensui Liu
__ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu (http://spaces.msn.

Re: [R] how to convert multiple dummy variables to 1 factor variable?

2006-10-22 Thread Wensui Liu
: > On Sun, 2006-10-22 at 09:35 +0200, Peter Dalgaard wrote: > > Marc Schwartz <[EMAIL PROTECTED]> writes: > > > > > On Sat, 2006-10-21 at 21:04 -0400, Wensui Liu wrote: > > > > Dear Listers, > > > > > > > > I am wonderi

Re: [R] how to convert multiple dummy variables to 1 factor variable?

2006-10-22 Thread Wensui Liu
Great! It seems everyone is having fun with R in the weekend afternoon. Thank you so much, Marc and Peter. On 10/22/06, Marc Schwartz <[EMAIL PROTECTED]> wrote: > On Sun, 2006-10-22 at 14:03 -0500, Marc Schwartz wrote: > > On Sun, 2006-10-22 at 14:37 -0400, Wensui Liu wrote: >

[R] how to convert multiple dummy variables to 1 factor variable?

2006-10-21 Thread Wensui Liu
Dear Listers, I am wondering how to convert multiple dummy variables to 1 factor variable. Thanks. wensui __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/p

[R] RODBC problem

2006-10-20 Thread Wensui Liu
In a mdb table, I have a text field with values of 1, 2, When I use rodbc to read it into R, it becomes numeric. Is it a bug or something? Thanks. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Automatic File Reading

2006-10-18 Thread Wensui Liu
514-412-7106 > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained,

Re: [R] Data frames questions

2006-09-23 Thread Wensui Liu
> 3) How to I "append" to the bottom of a dataframe? APPEND ROWS ITERATIVELY TO A DATA FRAME # # APPEND ROWS ITERATIVELY TO A DATA FRAME # # # LOOP FROM 1 TO 10 for(i in 1:10) { # SET THE RAND

Re: [R] Question about merge()

2006-09-23 Thread Wensui Liu
gt; PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu (http://spaces.msn.com/statcompute/blog) Senior Decision Support Analyst Cincinnati Children Hospital Medical Center ___

Re: [R] Problem with rpart

2006-09-19 Thread Wensui Liu
t; The information in this email is intended only for the named...{{dropped}} > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide com

Re: [R] how to rescale the limits of yaxis rather than using the data range by default?

2006-09-16 Thread Wensui Liu
HI, Peter, It is exactly what I want. Thank you so much! wensui On 9/16/06, Peter Konings <[EMAIL PROTECTED]> wrote: > Hi, > > I'm not sure I understand your question correctly, but does the ylim option > of plot do what you want? > > HTH > Peter. > > >

[R] how to rescale the limits of yaxis rather than using the data range by default?

2006-09-16 Thread Wensui Liu
Dear Lister, plot() is using the data range as the default limits of yaxis. Is there any way I can change the limits? I just look at the help of plot() and par() and couldn't find answers. Thanks. -- WenSui Liu (http://spaces.msn.com/statcompute/blog) Senior Decision Support Analyst H

Re: [R] Table manipulation question

2006-09-14 Thread Wensui Liu
like: > > T1$C2=T2$C2[index-expression-to-pullout the matching ones] > > Any ideas would be appreciated. > > Cheers, > Geoff Russell > > [[alternative HTML version deleted]] > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/li

Re: [R] R-question

2006-09-13 Thread Wensui Liu
well, Harrell, I understand sweave or R2html could be a solution. but please show me their applications in a large business setting. On the contrary, I can give you many such cases using SAS. On 9/13/06, Frank E Harrell Jr <[EMAIL PROTECTED]> wrote: > Wensui Liu wrote: > &g

Re: [R] R-question

2006-09-13 Thread Wensui Liu
_ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > > -- WenSui Liu (http:/

Re: [R] variables in object names

2006-09-12 Thread Wensui Liu
[[alternative HTML version deleted]] > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal,

[R] refer to objects with sequential names

2006-08-27 Thread Wensui Liu
Dear Listers, If I have several glm objects with names glm1, glm2 and want to apply new data to these objects. Instead of typing "predict(glm1, newdata)..." 100 times, is there way I could do so in a loop? Thank you so much! wensui [[alternative HTML version deleted]] _

Re: [R] how to create many objects with sequencial names?

2006-08-26 Thread Wensui Liu
ier to access since all the data is in a single object. You could > do it in a loop: > > result <- list() > for(i in 1:100){ > ..computation. > result[[i]] <- yourResult > } > > > On 8/26/06, Wensui Liu <[EMAIL PROTECTED]> wrote: > &

[R] how to create many objects with sequencial names?

2006-08-26 Thread Wensui Liu
Dear Lister, Is there a way to create many objects with sequencial names, say lm1, lm2...lm100? Thanks. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/post

Re: [R] for() loop question

2006-08-26 Thread Wensui Liu
Thank you so much Marc. Your solution is exactly what I am looking for. Have a nice weekend. wensui On 8/26/06, Marc Schwartz <[EMAIL PROTECTED]> wrote: > On Sat, 2006-08-26 at 13:06 -0400, Wensui Liu wrote: > > Dear Lister, > > > > If I have a list of number, say

[R] for() loop question

2006-08-26 Thread Wensui Liu
Dear Lister, If I have a list of number, say x<-c(0.1, 0.5, 0.6...), how to use a for() to loop through each number in x one by one? Thank you so much! wensui [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

Re: [R] apply least angle regression to generalized linear models

2006-08-18 Thread Wensui Liu
_ > > R-help@stat.math.ethz.ch mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code.

Re: [R] merge 2 data frame based on more than 2 variables

2006-08-14 Thread Wensui Liu
what if the names are different in 2 data frames? On 8/14/06, Simon Blomberg <[EMAIL PROTECTED]> wrote: > Wensui Liu wrote: > > Dear Lister, > > > > I understand merge() can be used to join 2 data frames based on 1 variable. > > But how about merge based on mor

[R] merge 2 data frame based on more than 2 variables

2006-08-14 Thread Wensui Liu
Dear Lister, I understand merge() can be used to join 2 data frames based on 1 variable. But how about merge based on more than 2 variables? Thank you so much! -- WenSui Liu (http://spaces.msn.com/statcompute/blog) Senior Decision Support Analyst Health Policy and Clinical Effectiveness

Re: [R] proc standardize & data frame x and y

2006-08-12 Thread Wensui Liu
"age" "age" ... > ..- attr(*, "dimnames")=List of 2 > .. ..$ : chr "1" "2" "3" "4" ... > .. ..$ : chr "age" "sex" "bmi" "map" ... > ..- attr(*, "class")= chr "AsIs

Re: [R] proc standardize & data frame x and y

2006-08-12 Thread Wensui Liu
ge" "age" "age" "age" ... > ..- attr(*, "dimnames")=List of 2 > .. ..$ : chr "1" "2" "3" "4" ... > .. ..$ : chr "age" "sex" "bmi" "map" ... > ..- attr(*, "class")= chr "A

Re: [R] lasso for variable selection

2006-08-12 Thread Wensui Liu
sting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu (http://spaces.msn.com/statcompute/blog) Senior Decision Support Analyst Health Policy and Clinical Effectiveness Cincinn

Re: [R] How to obtain 95th percentile of a normal distribution of a continuous variable

2006-07-23 Thread Wensui Liu
_ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- WenSui Liu (http://spaces.msn

[R] comparison between parametric and semiparametric models

2006-07-13 Thread Wensui Liu
Dear Listers, I have a question somehow off-topic but think I can find a good answer here. Using the same dataset, I've built a logistic regression and generalized additive model. Might I use likelihood ratio test to see if there is significant improvement in GAM model? Something like: (deviance

Re: [R] Data Manipulations - Group By equivalent

2006-07-01 Thread Wensui Liu
(group by hotel where year = 2005, avg > occupancy) - how is this done in R? (in R language not SQL). Thx! > > -zubin > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read t

Re: [R] R connectivity to database

2006-06-23 Thread Wensui Liu
t > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > -- WenSui Liu (http://spaces.msn.com/statcompute/blog) Senior Decision Support Analyst Health Policy and Clinical Effectiveness Cincinnati Children

Re: [R] is there a way to find the best ARIMA model automatically in R?

2006-05-18 Thread Wensui Liu
> R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > -- WenSui Liu (http://spaces.msn.com/statcompute/blog) Senior Decision S

[R] how to read/write tables in xml

2006-04-04 Thread Wensui Liu
Dear Listers, I have 2 questions regarding xml. 1) how to read/write tables in xml? 2) compared with csv, is xml a better way to transfer data cross systems/applications? Thank you so much for your insight. -- WenSui Liu (http://statcompute.blogspot.com) Senior Decision Support Analyst Health

Re: [R] can R be run without installation on to a computer

2006-03-31 Thread Wensui Liu
man/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > -- WenSui Liu (http://statcompute.blogspot.com) Senior Decision Support Analyst Health Policy and Clinical Effectiveness Cincinnati Children Hospital Medical Center

Re: [R] [Q] BIC as a goodness-of-fit stat

2006-03-06 Thread Wensui Liu
math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > -- WenSui Liu (http://statcompute.blogspot.com) Senior Decision Support Analyst Health Policy and Clini

Re: [R] Question about variable selection

2006-02-18 Thread Wensui Liu
ogy > McMaster University > Hamilton, Ontario > Canada L8S 4M4 > 905-525-9140x23604 > http://socserv.mcmaster.ca/jfox > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Wensui Li

  1   2   >