[R] problem loading package Hmisc

2006-11-25 Thread Ritwik Sinha
. Unfortunately the RSiteSearch is not working now, so the question may not be well researched. Thanks Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University [EMAIL PROTECTED] | +12163682366 | http://darwin.cwru.edu/~rsinha

Re: [R] problem loading package Hmisc

2006-11-25 Thread Ritwik Sinha
Sorry about the question. I had installed the package locally and hence the library command was not working as stated. library(Hmisc, lib.loc=~/R/) did the trick. On 11/25/06, Ritwik Sinha [EMAIL PROTECTED] wrote: Hi, I installed the package Hmisc with the command install.packages(Hmisc

Re: [R] Problems with plot and X11 in ubuntu

2006-11-11 Thread Ritwik Sinha
, reproducible code. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University [EMAIL PROTECTED] | +12163682366 | http://darwin.cwru.edu/~rsinha __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] Multivariate regression

2006-10-27 Thread Ritwik Sinha
://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. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University [EMAIL PROTECTED

[R] Replacing for loop with apply type function.

2006-10-23 Thread Ritwik Sinha
parameters. So, if x represents the sample from the chain, the ith row (representing the ith iteration) depends on the (i-1)th row. Thanks in advance, Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University [EMAIL PROTECTED] | +12163682366 | http://darwin.cwru.edu

Re: [R] lattice: adding text to plots

2006-10-09 Thread Ritwik Sinha
, subscripts, groups, ...) { panel.xyplot(x, y, ...) grid.text(DF$f[subscripts[1]], .1, .9) }) On 10/9/06, Ritwik Sinha [EMAIL PROTECTED] wrote: Hi Everyone, I know there was a thread recently that dealt with a similar issue, but this one is a little different. I have the following

Re: [R] lattice: adding text to plots

2006-10-09 Thread Ritwik Sinha
[subscripts[1]], .1, .9) }) On 10/9/06, Ritwik Sinha [EMAIL PROTECTED] wrote: Hi Everyone, I know there was a thread recently that dealt with a similar issue, but this one is a little different. I have the following data frame DF - data.frame(x = 1:12, y1

[R] lattice: adding text to plots

2006-10-08 Thread Ritwik Sinha
version is 0.12-11 (sorry they are not the latest ones, these are on the server). -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University [EMAIL PROTECTED] | +12163682366 | http://darwin.cwru.edu/~rsinha __ R-help

Re: [R] Plotting text with lattice

2006-10-05 Thread Ritwik Sinha
-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. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics

Re: [R] Plotting text with lattice

2006-10-05 Thread Ritwik Sinha
(...) panel.text(x=2, y=4, labels=which.packet()) }) On 10/5/06, Ritwik Sinha [EMAIL PROTECTED] wrote: Hi, On a related note, if I wanted to add different texts to different panels, should I stick to using trellis.focus() for each text in each panel? I cannot figure out a way to do

Re: [R] only need the p-value

2006-09-30 Thread Ritwik Sinha
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University [EMAIL PROTECTED] | +12163682366 | http://darwin.cwru.edu/~rsinha

[R] Print/Save/Cat/Write list

2006-09-30 Thread Ritwik Sinha
anything useful. Thanks and regards, Ritwik. Here is my version platform i686-redhat-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major2 minor2.1 year 2005 month12 day 20 svn rev 36812 language R -- Ritwik Sinha Graduate Student Epidemiology

Re: [R] Print/Save/Cat/Write list

2006-09-30 Thread Ritwik Sinha
thanks. Ritwik. On 9/30/06, jim holtman [EMAIL PROTECTED] wrote: try: sink(y.data) y sink() On 9/30/06, Ritwik Sinha [EMAIL PROTECTED] wrote: Hi, I would like to write a list to an ascii file. I tried the following y - list(a = 1, b = c(TRUE,FALSE), c = oops) save(y, file

Re: [R] Heteroskedasticity test

2006-09-30 Thread Ritwik Sinha
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University [EMAIL PROTECTED] | +12163682366 | http://darwin.cwru.edu/~rsinha

Re: [R] Histogram

2006-09-27 Thread Ritwik Sinha
]] __ 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. -- Ritwik Sinha Graduate Student Epidemiology

Re: [R] creation of new variables

2006-09-26 Thread Ritwik Sinha
]] __ 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. -- Ritwik Sinha Graduate Student

Re: [R] Statitics Textbook - any recommendation?

2006-09-24 Thread Ritwik Sinha
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University http://darwin.cwru.edu/~rsinha

Re: [R] how to delete some columns from a matrix based on some other indicator variable

2006-09-24 Thread Ritwik Sinha
__ 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. -- Ritwik Sinha Graduate Student

Re: [R] About truncated distribution

2006-09-12 Thread Ritwik Sinha
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University http://darwin.cwru.edu/~rsinha [[alternative HTML

Re: [R] covariance matrix of predictions

2006-08-27 Thread Ritwik Sinha
and variance of the predictor refer to page 39 of http://www.stat.lsa.umich.edu/~faraway/book/ Ritwik Sinha On 8/23/06, Arnab mukherji [EMAIL PROTECTED] wrote: Hi ! I am trying to get at the covariance of the predictions of a linear model. Suppose the we have: x-runif(1000) y-2 + 25x*x +rnorm

Re: [R] two density curves in one plot?

2006-08-27 Thread Ritwik Sinha
comments/changes to the QA then I can request the maintainer of the FAQ to include it. We could also include a lattice solution but I was thinking of not complicating things. Ritwik Sinha On 8/27/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: Not sure who maintains the FAQ but its not me. On 8

Re: [R] Implementing EM Algorithm in R!

2006-08-26 Thread Ritwik Sinha
]] __ 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. -- Ritwik Sinha Graduate Student

Re: [R] plotting picture data

2006-08-04 Thread Ritwik Sinha
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University http://darwin.cwru.edu/~rsinha [[alternative

[R] Rearrange data.

2006-07-19 Thread Ritwik Sinha
-linux-gnu arch i486 os linux-gnu system i486, linux-gnu status major2 minor2.1 year 2005 month12 day 20 svn rev 36812 language R -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University http://darwin.cwru.edu/~rsinha

Re: [R] FW: Large datasets in R

2006-07-18 Thread Ritwik Sinha
these softwares load the data onto RAM. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University http://darwin.cwru.edu/~rsinha __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Saving R graphics with version 2.3.1

2006-06-14 Thread Ritwik Sinha
in advance. Ilka Afonso Reis __ 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 -- Ritwik Sinha Graduate Student Epidemiology

Re: [R] negative binomial: expected number of events?

2006-06-05 Thread Ritwik Sinha
Hi, This page should answer your questions. http://mathworld.wolfram.com/NegativeBinomialDistribution.html Ritwik Sinha http://darwin.cwru.edu On 6/5/06, Werner Tell [EMAIL PROTECTED] wrote: Hi I'm fitting poisson and negative binomial distributions to event data. I'm interested

Re: [R] negative binomial: expected number of events?

2006-06-05 Thread Ritwik Sinha
Hi, The wikipedia page http://en.wikipedia.org/wiki/Negative_binomial also does a great job of explaining the negative binomial distribution. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University http://darwin.cwru.edu/~rsinha [[alternative

Re: [R] Fastest way to do HWE.exact test on 100K SNP data?

2006-06-05 Thread Ritwik Sinha
the exact test with a chi sq test, at least at the screening level. Once you identify a set of SNPs with small p-values, you could follow them up with the exact test. -- Ritwik Sinha Graduate Student Epidemiology and Biostatistics Case Western Reserve University http://darwin.cwru.edu/~rsinha

Re: [R] lm() variance covariance matrix of coefficients.

2006-06-03 Thread Ritwik Sinha
Thanks Everybody, I found it moments after I posted the question. Ritwik. On 03 Jun 2006 01:34:48 +0200, Peter Dalgaard [EMAIL PROTECTED] wrote: Rolf Turner [EMAIL PROTECTED] writes: Peter Dalgaard wrote: Rolf Turner [EMAIL PROTECTED] writes: summary(object)$cov.unscaled

[R] lm() variance covariance matrix of coefficients.

2006-06-02 Thread Ritwik Sinha
Hi, I am running a simple linear model with (say) 5 independent variables. Is there a simple way of getting the variance-covariance matrix of the coeffcient estimates? None of the values of the lm() seem to provide this. Thanks in advance, Ritwik Sinha [EMAIL PROTECTED] Grad Student Case

Re: [R] Is there a way to draw 3d plot?

2006-05-29 Thread Ritwik Sinha
Hi, I am not aware what this function does in matlab, but I was wondering why cloud or wireframe in the lattice package has not entered the discussion. Sorry if I am being naive. Ritwik. http://darwin.cwru.edu/~rsinha [[alternative HTML version deleted]]

Re: [R] uniform and clumped point plots

2006-05-18 Thread Ritwik Sinha
Hi, If you are looking for data clustered in two dimenstions you can use the multivariate normal package. Ritwik Sinha http://darwin.cwru.edu/~rsinha [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

Re: [R] plot with abscissa in hours/weekdays

2006-05-15 Thread Ritwik Sinha
Hi, You can use the axis() command. For example plot(xvec,yvec, xaxt=n) axis(side=1, labels=c(Mon, Tue), at=c(0,1)) The xaxt sets up the axis but does not plot it. And axis does the rest. Ritwik. Case Western Reserve University http://darwin.cwru.edu/~rsinha m p wrote: Hello, How can I