Re: [R] Regression using mapply?

2010-09-09 Thread Gray Calhoun
-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics, Iowa State University http://www.econ.iastate.edu/~gcalhoun/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] (no subject)

2010-07-30 Thread Gray Calhoun
' as the name of the vector for collecting beta coefficients and 'ts' for the predictor variable.   I have set var.all equal to 1. A minor point: one should probably avoid using 'ts' as a variable name too, since it's a function in the stats package. -- Gray Calhoun Assistant Professor of Economics

Re: [R] reading dates in Excel into R

2010-07-30 Thread Gray Calhoun
]] __ 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. -- Gray Calhoun Assistant Professor

Re: [R] Glm

2010-07-28 Thread Gray Calhoun
you generate, since the variance is coming from x1 and x2, not 'a'. Your question sounds a little like a homework problem. If it's not, please explain what you're trying to do. --Gray 2010/7/27 Ana De Barros belindadebar...@gmail.com: No, but thanks anyway... On 27/07/10 16:38, Gray Calhoun

Re: [R] randomisation for matrix

2010-07-28 Thread Gray Calhoun
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. -- Gray Calhoun Assistant Professor of Economics, Iowa State University http://www.econ.iastate.edu

Re: [R] error in f(x,...)

2010-07-28 Thread Gray Calhoun
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics, Iowa State University http://www.econ.iastate.edu/~gcalhoun/ __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Glm

2010-07-27 Thread Gray Calhoun
these alphas but my Y is unknown... Any ideas?... Thanks, Ana [[alternative HTML version deleted]] -- Gray Calhoun Assistant Professor of Economics, Iowa State University http://www.econ.iastate.edu/~gcalhoun/ __ R-help@r-project.org mailing

Re: [R] re-sampling of large sacle data

2010-07-27 Thread Gray Calhoun
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics, Iowa State University http://www.econ.iastate.edu/~gcalhoun/ __ R-help@r-project.org mailing

Re: [R] Repeated Procedures

2010-07-26 Thread Gray Calhoun
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics, Iowa State University http://www.econ.iastate.edu/~gcalhoun/ __ R-help@r-project.org

Re: [R] Troubles with DBI's dbWriteTable in RMySQL

2010-07-19 Thread Gray Calhoun
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. -- Gray Calhoun Assistant Professor of Economics, Iowa State University http

Re: [R] an IDE for R... JGR perhaps?

2009-12-21 Thread Gray Calhoun
, minimal, self-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Closing files after using write

2009-12-21 Thread Gray Calhoun
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. -- Gray Calhoun Assistant Professor of Economics Iowa State University

Re: [R] integer(0) and NA do not equal FALSE

2009-12-19 Thread Gray Calhoun
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R-help@r-project.org mailing list https

Re: [R] How to print to file?

2009-12-18 Thread Gray Calhoun
/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. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R-help@r

Re: [R] CORRECTION - Generation of Random numbers in a loop

2009-12-17 Thread Gray Calhoun
]] __ 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. -- Gray Calhoun Assistant Professor of Economics Iowa State

Re: [R] Sweave Makefile issue

2009-12-17 Thread Gray Calhoun
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R-help@r-project.org mailing list https

Re: [R] Remove duplicates from a data frame but with some special requirements

2009-12-17 Thread Gray Calhoun
the if at least one of the subsamples has a Y then I want that line rather than a subsample with another code.  1.1 in this example works by default because the first subsample is a Y so it will retain that information. Thanks Gareth Gray Calhoun-2 wrote: Hi, Try: subset(Samps, !duplicated(Samps

Re: [R] poly() with unnormalized values

2009-12-17 Thread Gray Calhoun
, self-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ 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

Re: [R] Remove duplicates from a data frame but with some special requirements

2009-12-16 Thread Gray Calhoun
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R-help@r-project.org mailing list https

Re: [R] Reconstruct a dataset

2009-12-15 Thread Gray Calhoun
/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. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R

Re: [R] how to use Rengine instance to parse R script String

2009-12-14 Thread Gray Calhoun
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Logit Estimation with Panel Data

2009-12-14 Thread Gray Calhoun
deleted]] __ 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. -- Gray

Re: [R] fast matrix-vector multiplication

2009-12-14 Thread Gray Calhoun
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Correcting for missing data combinations

2009-12-11 Thread Gray Calhoun
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. -- Gray Calhoun Assistant Professor of Economics Iowa State University

Re: [R] global variables in a function

2009-12-10 Thread Gray Calhoun
/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. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ R

Re: [R] could not find function lapply-

2009-12-08 Thread Gray Calhoun
://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. -- Gray Calhoun Assistant Professor of Economics Iowa State University

[R] Fwd: conditionally merging adjacent rows in a data frame

2009-12-08 Thread Gray Calhoun
in consecutive rows when constructing the 'consecutiveROI' vector (just as an additional error check). There may be a built-in function that could replace first three line lines, as well. Best, Gray -- Forwarded message -- From: Gray Calhoun gray.calh...@gmail.com Date: Tue, Dec 8, 2009

Re: [R] conditionally merging adjacent rows in a data frame

2009-12-08 Thread Gray Calhoun
. __ 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. -- Gray Calhoun

Re: [R] paste adjacent elements matching string

2009-12-05 Thread Gray Calhoun
, reproducible code. -- Gray Calhoun Assistant Professor of Economics Iowa State University __ 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

Re: [R] Data Manipulation Question

2009-12-04 Thread Gray Calhoun
This is probably far more discussion than the question warranted, but... On Thu, Dec 3, 2009 at 11:14 PM, David Winsemius dwinsem...@comcast.net wrote: On Dec 3, 2009, at 10:52 PM, Gray Calhoun wrote: The data import/export manual can elaborate on a lot of these; this is all straightforward

Re: [R] Standard deviation for each element in a set of matrices

2009-12-04 Thread Gray Calhoun
...@ouce.ox.ac.uk __ 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. -- Gray Calhoun

Re: [R] Data Manipulation Question

2009-12-03 Thread Gray Calhoun
The data import/export manual can elaborate on a lot of these; this is all straightforward, although many people would prefer to use a relational database for some of the things you mentioned. I'm not aware of a goto command in R, though (although I could be wrong). --Gray On Thu, Dec 3, 2009 at

Re: [R] Plotting observed vs. fitted values

2009-11-29 Thread Gray Calhoun
of your data in a single data frame; doing so would make it easier to use the lattice graphics package for this sort of problem. -- Gray Calhoun Assistant Professor of Economics, Iowa State University http://www.econ.iastate.edu/~gcalhoun/ 467 Heady Hall Ames, IA 50011 Phone: (515) 294-6271 Fax