search for: jhsph

Displaying 20 results from an estimated 485 matches for "jhsph".

2006 Jul 13
1
Scalling/Centering the Data by an Index
...-----______________________________________ M. Ashraf Chaudhary, Ph.D. Associate Scientist/Biostatistician Department of International Health Johns Hopkins Bloomberg School of Public Health 615 N. Wolfe St. Room W5506 Baltimore MD 21205-2179 (410) 502-0741/fax: (410) 502-6733 <mailto:mchaudha@jhsph.edu> mchaudha@jhsph.edu Web:http://faculty.jhsph.edu/?F=Mohammad&L=Chaudhary [[alternative HTML version deleted]]
2004 Jun 11
3
Change in grep behavior from 1.9.0 to R-patched
I've noticed a change in the way grep() behaves between the 1.9.0 release and a recent R-patched. On 1.9.0 I get the following output: > x <- dget(file = url("http://www.biostat.jhsph.edu/~rpeng/names.R")) > length(grep("^l\\w+tmean", x, perl = TRUE, value = TRUE)) [1] 84 And on R-patched (2004-06-11) I get > x <- dget(file = url("http://www.biostat.jhsph.edu/~rpeng/names.R")) > length(grep("^l\\w+tmean", x, perl = TRUE, value...
2004 Dec 17
1
Confidence Intervals from Bootstrap Replications
..._____________________________ M. Ashraf Chaudhary, Ph.D. Associate Scientist/Biostatistician Department of International Health Disease Prevention and Control Program Johns Hopkins University Bloomberg School of Public Health 615 North Wolfe Street, Room W5506 Baltimore MD 21205 mchaudha@jhsph.edu Phone: (410) 502-0741/Fax: (410) 502-6733 http://faculty.jhsph.edu/?F=Mohammad&L=Chaudhary [[alternative HTML version deleted]]
2008 Jul 31
2
C versions of serialize/unserialize in packages
...type. */ I have a function in the 'filehash' package that unserializes a bunch of objects from a file and it seems to run much faster in C than in R. But I don't want to release something that uses a non-public function/interface. Thanks, -roger -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/
2009 Oct 15
4
Generating a stochastic matrix with a specified second dominant eigenvalue
...------------------------------------------------ ------- Ravi Varadhan, Ph.D. Assistant Professor, The Center on Aging and Health Division of Geriatric Medicine and Gerontology Johns Hopkins University Ph: (410) 502-2619 Fax: (410) 614-9625 Email: rvaradhan@jhmi.edu Webpage: <http://www.jhsph.edu/agingandhealth/People/Faculty_personal_pages/Varadhan. html> http://www.jhsph.edu/agingandhealth/People/Faculty_personal_pages/Varadhan.h tml ---------------------------------------------------------------------------- -------- [[alternative HTML version deleted]]
2006 Mar 22
1
lme convergence
...ur pointing me to the source of the problem. Ashraf _________________________________ M. Ashraf Chaudhary, Ph.D. Department of International Health Johns Hopkins Bloomberg School of Public Health 615 N. Wolfe St. Room W5506 Baltimore MD 21205-2179 (410) 502-0741/fax: (410) 502-6733 mchaudha@jhsph.edu <mailto:mchaudha@jhsph.edu> [[alternative HTML version deleted]]
2006 Mar 16
6
removing ROWS with missing values
I am trying to find out if R can recognize specific criteria for removing rows (i.e. a prexisting function) I have a matrix myMatrix that is 12000 by 20 I would like to remove rows from myMatrix that have: -999 across all columns -999 across all columns but one -999 across all columns but two -999 across all columns but three -999 across all columns but four -999 across all columns but five
2007 Jun 20
4
finding roots of multivariate equation
Hello, I want to find the roots of an equation in two variables. I am aware of the uniroot function, which can do this for a function with a single variable (as I understand it...) but cannot find a function that does this for an equation with more than one variable. I am looking for something implementing similar to a Newton-Raphson algorithm. Thanks. -- Bill Shipley North American Editor for
2005 Nov 20
1
mapply() gives seg fault (PR#8332)
...language R (By the way, in the output of "R.version", should all the spurious whitespace be kept at end of lines?) -- Fran?ois Pinard http://pinard.progiciels-bpi.ca --KsGdsel6WgEHnImy Content-Type: message/rfc822 Content-Disposition: inline From: rpeng at jhsph.edu (Roger D. Peng) Date: Tue Oct 14 18:10:52 2003 Subject: [R] mapply() gives seg fault In-Reply-To: <a06002007bbb1c91c2d44@[139.166.242.29]> References: <a06002007bbb1c91c2d44@[139.166.242.29]> Message-ID: <3F8C1E93.7030903 at jhsph.edu> I get this too on the released version....
2008 Mar 18
4
cut.Date and cut.POSIXt problem
cut.Date and cut.POSIXt indicate that the breaks argument can be an integer followed by a space followed by "year", etc. but it seems the integer is ignored. For example, I assume that breaks = "3 months" is supposed to cut it into quarters but, in fact, it cuts it into months as if 3 had not been there. > d <- seq(Sys.Date(), length = 12, by = "month") >
2008 Apr 04
0
cacher v0.1-2
...evaluated expressions are cached in a database. These cached results can subsequently be packaged up and distributed over the interweb. I've just uploaded to CRAN version 0.1-2 of the 'cacher' package. There is a brief document describing the package available at http://www.biostat.jhsph.edu/~rpeng/papers/archive/cacher.pdf Some sample cached analyses can be found at http://penguin.biostat.jhsph.edu/cpkg.html For example, if you wanted to download the analysis associated with the 'sample.R' file, you could run library(cacher) clonecache(id = "44bf", all.files...
2004 Aug 26
1
gls: Newton-Raphson or EM?
Hello, Does anyone know whether the gls function in the nlme library uses the Newton-Raphson or EM algorithm to find the restricted log-likelihood or maximum log-likelihood estimates? Brendan Klick bklick@jhsph.edu [[alternative HTML version deleted]]
2008 Apr 04
0
cacher v0.1-2
...evaluated expressions are cached in a database. These cached results can subsequently be packaged up and distributed over the interweb. I've just uploaded to CRAN version 0.1-2 of the 'cacher' package. There is a brief document describing the package available at http://www.biostat.jhsph.edu/~rpeng/papers/archive/cacher.pdf Some sample cached analyses can be found at http://penguin.biostat.jhsph.edu/cpkg.html For example, if you wanted to download the analysis associated with the 'sample.R' file, you could run library(cacher) clonecache(id = "44bf", all.files...
2007 May 04
1
Display list redraw incomplete
...sage: Display list redraw incomplete I don't think I've ever seen that warning before. In addition to the warning, two extra x11 devices are launched. Same thing happens in R-devel (r41438). Any thoughts on what might be going on? Thanks, -roger -- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/
2007 Jun 06
2
name of the variable that will contain the result of a function
...) so, inside foo() I'd like to be able to get the string "x". if, foo(arg1) was used insted, I'd like to get NA. thank you very much, b -- Benilton Carvalho PhD Candidate Department of Biostatistics Bloomberg School of Public Health Johns Hopkins University bcarvalh at jhsph.edu
2006 Nov 29
2
How to solve differential equations with a delay (time lag)?
...--------------------------------------------------- ------- Ravi Varadhan, Ph.D. Assistant Professor, The Center on Aging and Health Division of Geriatric Medicine and Gerontology Johns Hopkins University Ph: (410) 502-2619 Fax: (410) 614-9625 Email: rvaradhan@jhmi.edu Webpage: http://www.jhsph.edu/agingandhealth/People/Faculty/Varadhan.html ---------------------------------------------------------------------------- -------- [[alternative HTML version deleted]]
2006 Sep 29
2
X-axis labels in histograms drawn by the "truehist" function
...--------------------------------------------------- ------- Ravi Varadhan, Ph.D. Assistant Professor, The Center on Aging and Health Division of Geriatric Medicine and Gerontology Johns Hopkins University Ph: (410) 502-2619 Fax: (410) 614-9625 Email: rvaradhan@jhmi.edu Webpage: http://www.jhsph.edu/agingandhealth/People/Faculty/Varadhan.html ---------------------------------------------------------------------------- -------- [[alternative HTML version deleted]]
2007 Feb 01
3
Need help writing a faster code
...--------------------------------------------------- ------- Ravi Varadhan, Ph.D. Assistant Professor, The Center on Aging and Health Division of Geriatric Medicine and Gerontology Johns Hopkins University Ph: (410) 502-2619 Fax: (410) 614-9625 Email: rvaradhan@jhmi.edu Webpage: http://www.jhsph.edu/agingandhealth/People/Faculty/Varadhan.html ---------------------------------------------------------------------------- -------- [[alternative HTML version deleted]]
2008 Apr 09
4
Skipping specified rows in scan or read.table
...--------------------------------------------------- ------- Ravi Varadhan, Ph.D. Assistant Professor, The Center on Aging and Health Division of Geriatric Medicine and Gerontology Johns Hopkins University Ph: (410) 502-2619 Fax: (410) 614-9625 Email: rvaradhan@jhmi.edu Webpage: http://www.jhsph.edu/agingandhealth/People/Faculty/Varadhan.html ---------------------------------------------------------------------------- -------- [[alternative HTML version deleted]]
2005 Aug 04
4
Modifying the parameters for a function
I have modified the parameters for a function (for my own use) in the stats package, but I assume I need to update the parameter set in another file as I'm getting the following error when I run R: The compile works fine so I assume there is a configuration file in the base package of R that needs modification. Error in parse(file, n, text, prompt) : syntax error on line 11102 Error: