search for: tesutton

Displaying 6 results from an estimated 6 matches for "tesutton".

Did you mean: sutton
2011 Apr 19
5
Simple Missing cases Function
Dear all I have written a function to perform a very simple but useful task which I do regularly. It is designed to show how many values are missing from each variable in a data.frame. In its current form it works but is slow because I have used several loops to achieve this simple task. Can anyone see a more efficient way to get the same results? Or is there existing function which does
2010 Sep 09
1
Emacs function argument hints
Hi I've recently started using Emacs as my text editor for writing R script. I am looking for a feature which I have seen on the standard R text editor for Mac OS. In the Mac OS editor when you start typing a function, the possible arguments for that function appear at the bottom of the window. E.g. if you type "table( " before you finish typing you can see at the bottom of the
2011 Sep 14
1
svytable including NAs
Dear all I'm creating two way tables based on weighted survey data using svytable and want to include NAs as a level in the table. For unweighted data I use table(..., useNA="ifany"). Is there any equivalent for svytable? If not, is there a solution using a different function? Thanks Tim -- Tim Elwell-Sutton The University of Hong Kong Office: 3906 2053 Mob: 6084 5654
2010 Oct 12
1
Help with function writing
Hello all I have what seems like a simple question but have not been able to find an answer on the forum. I'm trying to define a function which involves regression models and a large number of covariates. I would like the function to accept any number of covariates and, ideally, I would like to be able to enter the covariates in a group (e.g. as a list) rather than individually. Is there any
2010 Aug 24
0
mlm for within subject design
...how to generate the random numbers from a multivariate normal distribution with specified correlation matrix? What about other non-normal distribution? Thanks a lot. -- ----------------- Jane Chang Queen's [[alternative HTML version deleted]] --Forwarded Message Attachment-- From: tesutton at hku.hk To: r-help at r-project.org Date: Tue, 24 Aug 2010 09:44:13 +0800 Subject: [R] Rotate x-axis label on log scale Hi I'd appreciate some help with plotting odds ratios. I want to rotate the labels on the x-axis by 45 degrees. The usual way of doing this, using text - e.g. text(1, pa...
2010 Aug 24
3
Rotate x-axis label on log scale
Hi I'd appreciate some help with plotting odds ratios. I want to rotate the labels on the x-axis by 45 degrees. The usual way of doing this, using text - e.g. text(1, par('usr')[3]-2.25..) - gives no result when the y-axis is a log scale. I guess this is because, as the par help says, for a logarithmic y-axis: y-limits will be 10 ^ par("usr")[3:4] Does anyone know