similar to: 'mean' function

Displaying 20 results from an estimated 10000 matches similar to: "'mean' function"

2004 Jul 21
2
How to do a "go to " in a loop in R
Hi there, I'm writing a function which involves a loop. What to write in the "?" place would allow it skips the "for loop" and goes to "a[i]<-0". a<-b[s>3,] if (nrow(a)==0) ????????????? for (i in 1:nrow(a)){ a[i]<-1 } a[i]<-0 Lisa Wang Cancer Informatics, Ontario Cancer Institute/Princess Margaret Hospital,
2004 Sep 09
2
GEE model
Hello there, My name is Lisa and I'm doing analysis using genelized linear model-GEE model because I have some repeated measurements on the same patients (in a bilateral eye disease case). It would be very appreciated if you could shed some light on what function to use in R. Thank you very much Lisa Wang Msc. Toronto,Ca
2005 Nov 08
3
how to draw cumulative histogram
Hello there, I am using R to plot some cumulative histogram for my data. Please help in this case. Thank you Lisa Wang Princess Margaret Hospital Toronto phone 416 946 4501 ext.4883
2005 Jun 28
2
How to sort a dataframe by one variable
Hi there, Could anybody help me on how to sort a dataframe by one variable in the dataframe? Thank you Lisa Wang Princess Margaret Hospital Toronto, Ca tel: 416 946 4501
2005 Nov 23
2
wilcoxon.test?
Hello there, I would like to do a Wilcoxon matched pairs signed rank sum test in R and tried the function wilcoxon.test. Is it in the "base" library? If not, please let me know which library it is in. Thank you in advance for your help Lisa Wang Biostatistician Princess Margaret Hospital Toronto, Ca
2006 Feb 09
2
latent class modle for rater agreement
Hello there, I would like to test the agreement amongst 6 raters for nominal data on a scale from 1-4, and conduct a latent class analysis in R. How should the data be formatted and what code should I use? Thank you very much Lisa Wang Princess Margaret Hospital Biostatistics tel:416 946 4501
2006 Mar 08
2
How to plot the xaxis label at 45 degree angle?
Hello there, I would like to plot a graph with the x axis's label displayed at a 45 angle to the x axis instead of horizontal to it as the label is very long. What should I do? Thank you for your help in advance Lisa Wang Princess Margaret Hospital Toronto, Ca
2006 Dec 07
2
How to use read.xls in R
Hello there, In gdata package, read.xls is to be used for reading excel data (from windows). The following is my code:('C:/session/sampledata.xls' is where the file is stored) data1<-read.xls('C:/session/sampledata.xls',sheet=1) and I got the following error message: Error in system(cmd, intern = !verbose) : perl not found Could you please tell me what I have done wrong and
2005 Dec 15
5
How to simulate correlated data
Hello there, I would like to simulate X --Normal (20, 5) Y-- Normal (40, 10) and the correlation between X and Y is 0.6. How do I do it in R? Thank you very much Lisa Wang Msc. Princess Margaret Hospital Toronto, Ca
2004 Jul 19
2
Evaluating the Yield of Medical Tests
Hello, I'm a biostatistician in Toronto. I would like to know if there is anything in survival analysis developed in R for the method "Evaluating the Yield of Medical Test" (JAMA. May 14,1982--Vol 247, No.18 Frank E. Harrell, Jr,PhD; Robert M. Califf, MD; David B. Pryor, MD;Kerry L.Lee, PhD; Robert A. Rosait,MD.) Hope to hear from you and thanks Lisa Wang, MSc Project Organiser
2005 Oct 18
3
Finding code for R functions
Greetings, I am trying to figure out how to find the source code for R functions. I am specifically interested in finding the code for the "prcomp" function. I know that typing the function name without parenthesis will lead to the code (or to a .Internal or .FORTRAN or .C call). However, I don't really understand what is going on. For example, typing "mean" gives a
2011 Mar 21
1
Curry with `[.function` ?
Dear all, I sometimes use the following function: Curry <- function(FUN,...) { # by Byron Ellis, https://stat.ethz.ch/pipermail/r-devel/2007-November/047318.html .orig <- list(...) function(...) do.call(FUN,c(.orig,list(...))) } ... and have thought it might be convenient to have a method for [ doing this. As a simple example, > apply(M, 1, mean[trim=0.1]) # hypothetical
2007 Aug 08
1
tapply grand mean
Hi R-users, I have a data.frame like this (modificated from https://stat.ethz.ch/pipermail/r-help/2007-August/138124.html). y1 <- rnorm(20) + 6.8 y2 <- rnorm(20) + (1:20*1.7 + 1) y3 <- rnorm(20) + (1:20*6.7 + 3.7) y <- c(y1,y2,y3) x <- rep(1:5,12) f <- gl(3,20, labels=paste("lev", 1:3, sep="")) d <- data.frame(x=x,y=y, f=f) and this is how I can
2006 Aug 03
3
(no subject)
Hey everyone, I'm trying version 1.0rc2, via the rpm at ATrpms. I'm running on CentOS 4.3 on an Opteron system. I have this running stably on a 32 bit system, but I'm crashing constantly on a 64 bit system. Here's what I'm getting in my mail logs when I try to log in via IMAP: Aug 3 15:01:21 lisa dovecot: imap-login: Login: user=<scottz>, method=PLAIN,
2011 May 01
8
LISA finite element in wine
I want to use LISA finite element program (http://www.lisa-fet.com/) under my Ubuntu machine. I did install Wine and it runs ok, then I install LISA and it installed without any error. However whrn I run LISA, it did not appear on the screen without any error? Anyone can assist how to me LISA running?
2011 Apr 26
6
Tell the difference between characters
Dear all, I just want to determine if the characters in a character string are the same or not. For example, temp <- c("aa", "aA", "ab") How do I determine the first one have the two same ?a?, and the second and third have the different characters? Thanks in advance. Lisa -- View this message in context:
2005 Sep 18
1
trimmed mean in R seems to round the trimming fraction
subject: trimmed mean in R seems to round the trimming fraction to r-help at stat.math.ethz.ch. Consider the following example of 10 numbers. 10% trimmed mean is correct but you can see that the result is the same for many trimming fractions till 0.20! For example 13% trimmed mean should use interpolation of second and eighth ordered observation. R does not seem to do this. The correct 13%
2007 Oct 25
1
meaning of "trim" in mean()
(I see this in both R-patched r43124 and R-devel r43233.) In the Argument section of ?mean: trim the fraction (0 to 0.5) of observations to be trimmed from each end of x before the mean is computed. Values outside that range are taken as the nearest endpoint. Then in the Value section: If trim is non-zero, a symmetrically trimmed mean is computed with a fraction of trim observations
2009 Dec 15
2
Reconstruct a dataset
Dear all, I have a dataset that looks like this: inividual var1 var2 ? 1 1 1 ? 2 1 2 ? 3 2 1 ? 4 2 2 ? ? ? ? ? I will random sample 2 individuals from this dataset based on a set of random numbers, e.g., rn1 <- c(0, 0, 1, 1), rn2 <- c(0, 0, 2, 0), rn3 <- c(1, 0, 0, 1), rn4 <-
2006 Jan 09
12
Shorewall blocks LISa on port 7741
Hello, all. I''ve been trying to get shorewall to get LISa working on my Gentoo box. It works as long as I have shorewall turned off, but whenever I turn it on, it seems to block all LISa activity. I have TCP port 7741 opened (as per lisa-home.sourceforge.net), and nmap says it''s open. Ethereal indicates that LISa is communicating via TCP port 7741, from 127.0.0.1 to