Re: [R] How to run one-way anova R?

2008-02-12 Thread Chuck Cleland
commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list

Re: [R] reshape question

2008-02-08 Thread Chuck Cleland
code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Row percentages for a table object

2008-02-07 Thread Chuck Cleland
/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. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W

Re: [R] Sampling

2008-02-05 Thread Chuck Cleland
. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Effect size of comparison of two levels of a factor in multiple linear regression

2008-02-04 Thread Chuck Cleland
__ R-help@r-project.org 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. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New

Re: [R] boxplot and number of observations per box

2008-01-30 Thread Chuck Cleland
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894

Re: [R] accessing the indices of outliers in a data frame boxplot

2008-01-25 Thread Chuck Cleland
=df) which(df$Y %in% mybp$out) [1] 8 12 47 66 88 93 mybp$out [1] 5.919915 9.135578 5.723714 8.758584 8.502147 4.920513 df$Y[which(df$Y %in% mybp$out)] [1] 5.919915 9.135578 5.723714 8.758584 8.502147 4.920513 See ?is.element and ?which. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street

Re: [R] plotting gridlines

2008-01-25 Thread Chuck Cleland
. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] predict from a multiple regression model

2008-01-22 Thread Chuck Cleland
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894

Re: [R] subsetting a data frame using string matching

2008-01-21 Thread Chuck Cleland
help! a - c(Alpha, Beta, Gamma, Beeta, Alpha, beta) b - c(1:6) df - data.frame(Title = a, Vals = b) df[grep(eta, df$Title),] Title Vals 2 Beta2 4 Beeta4 6 beta6 Karin -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th

Re: [R] summary of categorical variables

2008-01-21 Thread Chuck Cleland
/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. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F

[R] Assigning into each of a list of dataframes

2008-01-18 Thread Chuck Cleland
0.3887178 0.2256608 2 0.2642189 0.2135938 3 0.3881635 0.2328115 4 0.9060760 0.1013091 5 0.4578424 0.8167602 I want the variable Y to be added to each data frame in mylist. thanks, Chuck -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu

Re: [R] product of vector elements

2008-01-12 Thread Chuck Cleland
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894

Re: [R] recode() function results in logical output, not factor output

2008-01-08 Thread Chuck Cleland
and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org

Re: [R] choose the intercept from glm and lm

2008-01-08 Thread Chuck Cleland
. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] R procedure similar to STATA heckprob?

2008-01-03 Thread Chuck Cleland
://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. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th

Re: [R] Bootstrap Confidence Intervals

2008-01-02 Thread Chuck Cleland
you want something like this: hist(x.boot$t) _Fede_ Chuck Cleland wrote: _Fede_ wrote: Hi again. Watching this example that appears in the help page ratio - function(d, w) sum(d$x * w)/sum(d$u * w) city.boot - boot(city, ratio, R = 999, stype = w,sim = ordinary) boot.ci(city.boot, conf

Re: [R] median of binned values

2007-12-19 Thread Chuck Cleland
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. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel

Re: [R] Calculate remainer

2007-12-19 Thread Chuck Cleland
together in a function like this: myfunc - function(x,y){list(result = floor(x / y), remainder = x %% y)} myfunc(x=50, y=12) $result [1] 4 $remainder [1] 2 -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W

Re: [R] cor.test formula

2007-12-17 Thread Chuck Cleland
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R

Re: [R] [:]

2007-11-24 Thread Chuck Cleland
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. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845

Re: [R] looking for function like rollmean()

2007-11-24 Thread Chuck Cleland
. ?smooth -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] ragged array with append

2007-11-24 Thread Chuck Cleland
, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https

Re: [R] multiple comparison (glht) problem

2007-11-21 Thread Chuck Cleland
commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list

Re: [R] factors levels ?

2007-11-13 Thread Chuck Cleland
in the range [-3,-2.9) have the same factor... [-3,-2.9) etc. I would assume R has such a function but I cant recall which one it is. ?cut -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438

Re: [R] producing output as *.spo (spss output format)

2007-11-10 Thread Chuck Cleland
, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] running sum of a vector

2007-11-07 Thread Chuck Cleland
code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438-0894 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] simple averaging question?

2007-11-01 Thread Chuck Cleland
]] __ R-help@r-project.org 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. -- Chuck

Re: [R] subset data.frame with constraint of many values?

2007-10-24 Thread Chuck Cleland
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. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845

Re: [R] save lm output into vectors

2007-10-10 Thread Chuck Cleland
-project.org 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. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY

Re: [R] regression by groups

2007-10-09 Thread Chuck Cleland
do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 512-0171 (M, W, F) fax: (917) 438

Re: [R] locate word in vector

2007-09-14 Thread Chuck Cleland
superman are the first, fourth and fifith element in a? Please help me out. Thanks. a - c(superman, xamn, spiderman, superman, superman, xman, spiderman) grep(^superman$, a) [1] 1 4 5 ?grep OR which(a %in% superman) [1] 1 4 5 ?which ?is.element -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West

<    1   2   3