Re: [R] questions about histogram

2009-01-28 Thread Wenxia Li
it's a frequency histogram. The total area of the bars is 1, and the area of each bar represents its frequency, i.e. 25/50,10/50,10/50,5/50, respectively. And the width of the bars are different. On Jan 28, 2009, at 5:50 PM, Wenxia Li wrote: Hi all, I'm a new R user. I have the

Re: [R] questions about histogram

2009-01-28 Thread Jorge Ivan Velez
Dear Wenxia, Take a look at this post: http://www.nabble.com/Histogram-for-grouped-data-in-R-to21624806.html#a21624806 HTH, Jorge On Wed, Jan 28, 2009 at 4:50 AM, Wenxia Li ringingfeel...@gmail.com wrote: Hi all, I'm a new R user. I have the following information about a data set and how

Re: [R] glm binomial loglog (NOT cloglog) link

2009-01-28 Thread Jorge Ivan Velez
Dear Bill, Perhaps the cloglog function in the VGAM package might be useful for you. HTH, Jorge On Fri, Jan 23, 2009 at 11:32 AM, William Simpson william.a.simp...@gmail.com wrote: I would like to do an R glm() with family = binomial(link=loglog) Right now, the cloglog link exists, which

Re: [R] Faced Problems with RODBC package 1.2-5 and 1.2-4 for windows

2009-01-28 Thread Mark Wardle
You need to include much more information. Try creating a reproducible example - you may find the answer in the process of doing this. You may find the posting guide for the mailing list to be helpful - you've had no replies because you haven't explained your problem well enough. Mark

Re: [R] using Sweave with a master file that has several iputted .tex files

2009-01-28 Thread cameron.bracken
Mark Wardle wrote: Using make means a build for a single chapter is cached unless the source file changes and so one can see the results of changes to one source file almost immediately. The pgfSweave package is specifically designed for speeding up the compilation time in large

[R] standard error of logit parameters

2009-01-28 Thread Bomee Park
Hi everyone. I am now estimating the parameters for a logit model, and trying to get the estimates by laximizing the log_likelihood. The nlm function works nicely for maximizing the -(log_likelihood) and returns the parameter estimates that minimize the static, and the gradients also, but

[R] Ignore text when reading data

2009-01-28 Thread beyar
Hi, I have tab delimited text files containing numerical data, like below, but many more columns. As you can see, the first few lines are heading and file data. I need to skip these lines. 2 lines above where the numbers start is what I want to use as my header rows. I then want to ignore the

Re: [R] Ignore text when reading data

2009-01-28 Thread Remko Duursma
# replace this bit, replace it with your file name myfile - textConnection( Timeout1 Sec mm 0.82495117 -0.020977303 1.3554688 -0.059330709 1.826416-0.021419302 2.3295898 -0.051521059 2.8347168 -0.020661414 Timeout1 Sec mm 3.8679199

Re: [R] Ignore text when reading data

2009-01-28 Thread Remko Duursma
Sorry, forgot this line after the textConnection bit: r - readLines(myfile) - Remko Duursma Post-Doctoral Fellow Centre for Plant and Food Science University of Western Sydney Hawkesbury Campus Richmond NSW 2753 Dept of Biological Science

Re: [R] Ignore text when reading data

2009-01-28 Thread jim holtman
Try this: x - readLines(textConnection(main data file - file 1 + by mr x + etc + + + Timeout1 + Sec mm + 0.82495117 -0.020977303 + 1.3554688 -0.059330709 + 1.826416-0.021419302 + 2.3295898 -0.051521059 + 2.8347168 -0.020661414 + + + Timeout1 + Sec

Re: [R] Ignore text when reading data

2009-01-28 Thread beyar
thanks to all for the solutions. Especially to Jim H for this one which worked perfectly... (i only had to change the seperater on the header to /t as there are spaces in header names) Try this: x - readLines(textConnection(main data file - file 1 + by mr x + etc + + +

[R] Question about collapse/aggregate and avoidance of loops

2009-01-28 Thread Weiss, Bernd
Dear all, given the following data ## original data id - c(1,1,1,2,2,3) author - c(A,B,C,D,E,F) tmp - data.frame(id,author) tmp tmp id author 1 1 A 2 1 B 3 1 C 4 2 D 5 2 E 6 3 F What is the best (most efficient/vectorized/avoiding loops) approach to

[R] Re : standard error of logit parameters

2009-01-28 Thread justin bem
Run outfit-nlm(..., hessian=T) and then standards error are se-diag(solve(outfit$hessian))   Justin BEM BP 1917 Yaoundé Tél (237) 76043774   De : Bomee Park bom...@stanford.edu À : r-help@r-project.org Envoyé le : Jeudi, 29 Janvier 2009, 4h01mn 56s

Re: [R] t.test in a loop

2009-01-28 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 28.01.2009 12:57:55: On Wed, 28 Jan 2009, Michael Pearmain wrote: Hi All, I've been having a little trouble with creating a loop that will run a a series of t.tests for inspection, Below is the code i've tried, and some checks i've looked

Re: [R] Re : standard error of logit parameters

2009-01-28 Thread markleeds
I'm sure below is fine but john fox's CAR book has some nice examples of how to compute the logit parameters and variances from scratch using iteratively weighted least squares. On Thu, Jan 29, 2009 at 1:54 AM, justin bem wrote: Run outfit-nlm(..., hessian=T) and then standards error

[R] Odp: Question about collapse/aggregate and avoidance of loops

2009-01-28 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 29.01.2009 07:52:37: Dear all, given the following data ## original data id - c(1,1,1,2,2,3) author - c(A,B,C,D,E,F) tmp - data.frame(id,author) tmp tmp id author 1 1 A 2 1 B 3 1 C 4 2 D 5 2 E 6

[R] Odp: stack data sets

2009-01-28 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 28.01.2009 19:25:32: Hi All, I'm generating 10 different data sets with 1 and 0 in a matrix form and writing the output in separate files. Now I need to stack all these data sets in one vector and I know that stack only operates on list or data

<    1   2