search for: jg_liao

Displaying 20 results from an estimated 30 matches for "jg_liao".

2003 Mar 05
8
how to find the location of the first TRUE of a logical vector
...hout having to check the vector element by element? Thanks a lot! Jason ===== Jason G. Liao, Ph.D. Division of Biometrics University of Medicine and Dentistry of New Jersey 335 George Street, Suite 2200 New Brunswick, NJ 08903-2688 phone (732) 235-8611, fax (732) 235-9777 http://www.geocities.com/jg_liao
2008 Jan 31
3
fastest way to compute the squared Euclidean distance between two vectors in R
...ondered if there is any faster way than my own simple function distance2 = function(x1, x2) { temp = x1-x2 sum(temp*temp) } I have searched the R-help archives and can not find anything except when the arguments are matrices. Thanks for any lead. Jason Jason Liao, http://www.geocities.com/jg_liao Associate Professor of Biostatistics Drexel University School of Public Health 1505 Race Street, Mail Stop 1033 Bellet Building, 6th Floor Philadelphia, PA 19102 phone 215-762-3934 ____________________________________________________________________________________ Looking for last mi...
2005 Apr 18
2
when can we expect Prof Tierney's compiled R?
I am excited to learn that Prof. Tierney is bringing to us compiled R. I would like to learn when it will be available. This information will be useful in scheduling some of my projects. Thanks. Jason Jason Liao, http://www.geocities.com/jg_liao Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb University of Medicine and Dentistry of New Jersey 683 Hoes Lane West, Piscataway‚ NJ 08854 phone 732-235-5429, School of Public Health office phone 732-235-9824, Cancer Institute of New Jersey office
2006 Aug 24
4
extremely slow recursion in R?
...le precision value if(k>n) then value = 0. elseif(k==0) then value = 1. else if(k==n) then value = 1. else value = choose(n-1, k) + choose(n-1, k-1) end if end function program main write(*,*) choose(30, 15) end program Jason Liao, http://www.geocities.com/jg_liao Department of Epidemiology and Biostatistics Drexel University School of Public Health 245 N. 15th Street, Mail Stop 660 Philadelphia, PA 19102-1192 phone 215-762-3934
2002 Feb 01
4
ROC curves using R
...eems that ROC curve computation is not supported on R. Anyone has some leads? Thanks. Jason ===== Jason G. Liao, Ph.D. Division of Biometrics UMDNJ School of Public Health 335 George Street, Suite 2200 New Brunswick, NJ 08903-2688 phone (732) 235-9748, fax (732) 235-9777 http://www.geocities.com/jg_liao __________________________________________________ Great stuff seeking new owners in Yahoo! Auctions! -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help&quo...
2006 May 10
3
new package error message
...Error in library(GeneLogit) : 'GeneLogit' is not a valid package -- installed < 2.0.0? It runs on R 1.9.0 just fine. It seems that others have encountered same problem but no solution is found by googling How can I fix this problem? Many thanks. Jason Liao, http://www.geocities.com/jg_liao Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb University of Medicine and Dentistry of New Jersey 683 Hoes Lane West, Piscataway? NJ 08854 phone 732-235-5429, School of Public Health office phone 732-235-9824, Cancer Institute of New Jersey office
2007 Feb 21
2
how much performance penalty does this incur, scalar as a vector of one element?
...paring R with other languages and systems. One peculiar feature of R is there is no scalar. Instead, it is just a vector of length one. I wondered how much performance penalty this deign cause, particular in situations with many scalars in a program. Thanks. Jason Liao, http://www.geocities.com/jg_liao Associate Professor of Biostatistics Drexel University School of Public Health 245 N. 15th Street, Mail Stop 660 Philadelphia, PA 19102-1192 phone 215-762-3934 ____________________________________________________________________________________ TV dinner still cooling? Check out "To...
2008 Jul 14
5
A question about using function plot
Hello, everyone! I have spent two hours to get what I wanted in a simple situation and have not been successful. The set up is extremely simple x = c(1,2,4,8) y = c(1,2,3,4) plot(x, y) What I need, however, is for the 4 points of 1,2,4,8 to be spaced evenly, not by their numerical scale. Also, there should not be any other values such as 5,6,7 marked on the axis. So I tried the following x =
2001 Sep 08
0
R-function available for noncentral hypergeometric distribution
For those who are interested, I have made available a R function for noncentral hypergeometric distribution at http://www.geocities.com/jg_liao/software/Hypergeometric/hypergeometric_in_R.txt The paper that describes the algorithm will appear in The American Statistician. The function does not run on S-plus as the R's scoping rule is used. Here is how the function can be used: > n1 <- 100 > n2 <- 100 > m1 <-...
2002 Oct 30
2
two small wishes for R
...as part of a variable name 2. Uses C or Java style comments mark. Jason ===== Jason G. Liao, Ph.D. Division of Biometrics University of Medicine and Dentistry of New Jersey 335 George Street, Suite 2200 New Brunswick, NJ 08903-2688 phone (732) 235-8611, fax (732) 235-9777 http://www.geocities.com/jg_liao __________________________________________________ HotJobs - Search new jobs daily now -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un...
2004 Sep 08
1
64 bit R slower than 32 bit R on Sun Sparc Solaris?
...arc these days. But our department has a (pretty new) two-CPU Sun server. We recently compiled R as a 64 bit application and expected a performance boost. But it runs 25-30% slower than the 32 bit version of R. Anyone knows why this is so? Thanks! Jason ===== Jason Liao, http://www.geocities.com/jg_liao Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb University of Medicine and Dentistry of New Jersey phone 732-235-5429, School of Public Health office phone 732-235-8611, Cancer Institute of New Jersey office moble phone 908-720-4205 ______________________________________________ R-help@stat...
2003 Jul 26
0
R benchmark, moble Pentium III, 1.13 GHs
...probably to supplement this benchmark with some of your favorite scripts that you run on the various machines you want to compare. This way, you get a better idea for your pqrticulqr work. Best, Philippe Grosjean ---------- Original Message ---------------------------------- From: Jason Liao <jg_liao at yahoo.com> Date: Thu, 24 Jul 2003 07:50:41 -0700 (PDT) >I got the following using the benchmark program at >http://www.sciviews.org/other/benchmark.htm > >under Windows 2000 prof., 256 MB of RAM > > R Benchmark 2 > ============= >Number of times each test is run___...
2001 Dec 19
2
how to get unique vectors
...(), which apply to a vector, not the 10000*3 array in my problem. Thanks in advance. Jason ===== Jason G. Liao, Ph.D. Division of Biometrics UMDNJ School of Public Health 335 George Street, Suite 2200 New Brunswick, NJ 08903-2688 phone (732) 235-9748, fax (732) 235-9777 http://www.geocities.com/jg_liao __________________________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "bod...
2001 Apr 17
1
fastest R platform: follow-up and summary
...few Office applications that are always running claim at least 100MB RAM according to the performanc monitor; that doesn't leave much for the large objects you tend to create when you vectorize unless you have at least 256MB. Reid Huntsinger -----Original Message----- From: Jason Liao [mailto:jg_liao at yahoo.com] Sent: Monday, April 16, 2001 11:14 PM To: r-help at stat.math.ethz.ch; jg_liao at yahoo.com Cc: Jason Liao Subject: [R] fastest R platform: follow-up and summary First, I would like to thank everyone who responded to my post and I apol*o*gize for replying late. 1. How slow can R be...
2003 Jul 23
5
Dismal R performance of Athlon moble CPU?
...he future? Thanks. By the way, the OS is Windows XP home edtion. Jason ===== Jason G. Liao, Ph.D. Division of Biometrics University of Medicine and Dentistry of New Jersey 335 George Street, Suite 2200 New Brunswick, NJ 08903-2688 phone (732) 235-8611, fax (732) 235-9777 http://www.geocities.com/jg_liao
2001 Sep 04
2
fastest way to multiply each column of a matrix by a single vlaue
...nd of operation million of times and I appreciate your input. Thanks. Jason Liao ===== Jason G. Liao Department of Biometry and Epidemiology Medical University of South Carolina 135 Rutledge Ave., STE 1148, Charleston, SC 29425 phone (843) 876-1114, fax (843) 876-1126 http://www.geocities.com/jg_liao/index.html __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci...
2007 Nov 06
3
help needed: taking a function out of a package and it can not find some funtions
...longer find some key functions called within it. I understand this has something to do with searching path which I do not understand well. Can anyone tell me how to modify the source code of an R function and still make it part of an existing package? Thanks. Jason Liao, http://www.geocities.com/jg_liao Associate Professor of Biostatistics Drexel University School of Public Health 245 N. 15th Street, Mail Stop 660 Philadelphia, PA 19102-1192 phone 215-762-3934
2007 Nov 06
3
help needed: taking a function out of a package and it can not find some funtions
...longer find some key functions called within it. I understand this has something to do with searching path which I do not understand well. Can anyone tell me how to modify the source code of an R function and still make it part of an existing package? Thanks. Jason Liao, http://www.geocities.com/jg_liao Associate Professor of Biostatistics Drexel University School of Public Health 245 N. 15th Street, Mail Stop 660 Philadelphia, PA 19102-1192 phone 215-762-3934
2004 Aug 12
4
truly object oriented programming in R
...double value = 0., diff; for (int i=0; i<bBox[0].length;i++) { diff = (bBox[1][i] - bBox[0][i])/2.; value += diff*diff; } return Math.sqrt(value); } } ===== Jason Liao, http://www.geocities.com/jg_liao Dept. of Biostatistics, http://www2.umdnj.edu/bmtrxweb University of Medicine and Dentistry of New Jersey phone 732-235-5429, School of Public Health office phone 732-235-8611, Cancer Institute of New Jersey office moble phone 908-720-4205
2001 May 01
2
6 times faster by eliminating apply
...in 1:10) test2() print(date()); for(i in 1:10) test3() print(date()); ===== Jason G. Liao Department of Biometry and Epidemiology Medical University of South Carolina 135 Rutledge Ave., STE 1148, Charleston, SC 29425 phone (843) 876-1114, fax (843) 876-1126 http://www.geocities.com/jg_liao/index.html __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~...