Re: [R] dotchart {graphics} 2.11.1 vs. 2.12.1

2011-02-01 Thread Joshua Wiley
/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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] dotchart {graphics} 2.11.1 vs. 2.12.1

2011-02-01 Thread Joshua Wiley
On Tue, Feb 1, 2011 at 9:23 AM, Peter Ehlers ehl...@ucalgary.ca wrote: Will this suffice:  dotchart(c(table(infert$education))) That is probably the cleanest answer for now (I tried something like that with as.vector(), but lost the names). Another reasonable option would be:

Re: [R] Select rows with distinct values in a column and other conditions

2011-01-31 Thread Joshua Wiley
, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Error in { : task 3 failed - NA/NaN argument

2011-01-30 Thread Joshua Wiley
__ 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. -- Joshua Wiley Ph.D. Student, Health

Re: [R] User error in calling predict/model.frame

2011-01-30 Thread Joshua Wiley
On Sun, Jan 30, 2011 at 5:59 PM, Russell Pierce rpier...@ucr.edu wrote: R-help list and interested parties, On Cross Validated mpiktas correctly noted that both the I() and rms Glm/Predict solution produce incorrect results You probably meant it this way anyways, but I would say it produces

Re: [R] User error in calling predict/model.frame

2011-01-29 Thread Joshua Wiley
)) ## -- David Winsemius, MD West Hartford, CT -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] User error in calling predict/model.frame

2011-01-29 Thread Joshua Wiley
On Sat, Jan 29, 2011 at 12:31 PM, David Winsemius dwinsem...@comcast.net wrote: Huh?. With the same model and data, they should be the same: I must be missing something, because that is what I would have expected too, but it is not what I get (at least when I run the code as shown below).

Re: [R] User error in calling predict/model.frame

2011-01-29 Thread Joshua Wiley
On Sat, Jan 29, 2011 at 1:05 PM, David Winsemius dwinsem...@comcast.net wrote: On Jan 29, 2011, at 3:49 PM, Joshua Wiley wrote: On Sat, Jan 29, 2011 at 12:31 PM, David Winsemius dwinsem...@comcast.net wrote: Huh?. With the same model and data, they should be the same: I must be missing

Re: [R] User error in calling predict/model.frame

2011-01-29 Thread Joshua Wiley
On Sat, Jan 29, 2011 at 1:23 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: xxAB - dat$xxA * dat$xxB meanAB - meanA * meanB sdAB - sqrt(sdA^2 + sdB^2 + meanA^2 * sdB^2 + meanB^2 * sdA^2) don't know why I did that the hard way (besides I think I messed up the formula slightly), but the point

Re: [R] Mean from confidence intervals

2011-01-28 Thread Joshua Wiley
Peter __ 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. -- Joshua Wiley

Re: [R] User error in calling predict/model.frame

2011-01-28 Thread Joshua Wiley
__ 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. -- Joshua Wiley Ph.D. Student, Health Psychology

Re: [R] Need help with my homework

2011-01-27 Thread Joshua Wiley
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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http

Re: [R] identifying when one element of a row has a positive number

2011-01-27 Thread Joshua Wiley
and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Need help with my homework

2011-01-27 Thread Joshua Wiley
On Thu, Jan 27, 2011 at 1:41 AM, gaja gajahor...@hotmail.com wrote: Hey Josh. Thanx for an explicit post, but I still can't get it. Would be nice if someone would just do that maths instead of posting forum isn't for that. I know its for R help and that, but if I can't do it, u could, huh?

Re: [R] adding error bars

2011-01-26 Thread Joshua Wiley
]] __ 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. -- Joshua Wiley Ph.D. Student, Health

Re: [R] Passing in arguments into function

2011-01-23 Thread Joshua Wiley
/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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] Passing formula as an agrument

2011-01-23 Thread Joshua Wiley
-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Creating subsets of a matrix

2011-01-23 Thread Joshua Wiley
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] How does the data.frame function generate column names?

2011-01-23 Thread Joshua Wiley
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r

Re: [R] ls.diag and lsfit very basic question

2011-01-22 Thread Joshua Wiley
, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] which operating system + computer specifications lead to the best performance for R?

2011-01-22 Thread Joshua Wiley
for speed and has championed various approaches to High Performance Computing with R: http://dirk.eddelbuettel.com/bio/presentations.html -- David Winsemius, MD West Hartford, CT -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] Obtaining a quadratic function igven three points on a curve

2011-01-20 Thread Joshua Wiley
. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ 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

Re: [R] Obtaining a quadratic function igven three points on a curve

2011-01-20 Thread Joshua Wiley
Many thanks for the correction David. Josh On Thu, Jan 20, 2011 at 7:17 AM, David Scott d.sc...@auckland.ac.nz wrote: I think you need poly(X, 2,  raw = TRUE) to interpret the coefficients in the manner described below. poly uses orthogonal polynomials by default: poly                  

Re: [R] syntax for a list of components from a list

2011-01-20 Thread Joshua Wiley
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. -- Joshua

Re: [R] Identify duplicate numbers and to increase a value

2011-01-20 Thread Joshua Wiley
/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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] How to find more about Covariance (in R)

2011-01-19 Thread Joshua Wiley
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R

Re: [R] how to get old packages to work on R 2.12.1

2011-01-19 Thread Joshua Wiley
, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] VarCorr

2011-01-19 Thread Joshua Wiley
Is this what you want? attr(VarCorr(merobject)[[1]], stddev) Alternately, look at: getMethod(VarCorr, signature = mer) For what is happening behind the scenes and why I chose what I did to extract the standard deviations Cheers, Josh On Jan 19, 2011, at 11:32, Stephanie Cooke

Re: [R] Printing pretty' vectors in Sweave

2011-01-18 Thread Joshua Wiley
Hi Robin, Have you looked at the 'collapse' argument to paste? something like: myvec - paste(1:4, collapse = , ) Might do what you want. Also maybe ?bquote or the like to get rid of quotes possibly (I'm not in a position to try presently). Side note, it is really probably best not to use 'c'

Re: [R] median by geometric mean -- are we missing what's important?

2011-01-17 Thread Joshua Wiley
Biostatistics __ 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. -- Joshua Wiley

Re: [R] a remove question

2011-01-16 Thread Joshua Wiley
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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http

Re: [R] Using summaryBy with weighted data

2011-01-16 Thread Joshua Wiley
-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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles

Re: [R] Rounding variables in a data frame

2011-01-15 Thread Joshua Wiley
On Fri, Jan 14, 2011 at 11:16 PM, Phil Spector spec...@stat.berkeley.edu wrote: Is sapply really necessary here? Apparently not, and it is certainly more cumbersome. Because data frames can contain a mix of classes, I thought that round() did not have a method for them (in retrospect that does

Re: [R] Rounding variables in a data frame

2011-01-14 Thread Joshua Wiley
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R

Re: [R] Sum by column

2011-01-12 Thread Joshua Wiley
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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http

Re: [R] Don´t know what test i have to use

2011-01-12 Thread Joshua Wiley
at Nabble.com. __ 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. -- Joshua

Re: [R] list concatenation

2011-01-11 Thread Joshua Wiley
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] how to sort new data frame based on the original data frame

2011-01-11 Thread Joshua Wiley
performance gains, if you are interested/that is an issue. HTH, Josh -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] how to change strip text of effect plot

2011-01-11 Thread Joshua Wiley
, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] how to change strip text of effect plot

2011-01-11 Thread Joshua Wiley
/custom the strip text in the lattice plotting system, I would think such an indirect method a last resort. Thank you. Ronggui On 12 January 2011 11:51, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi, I am guessing this is not what you meant by on the fly, but I think it will be by far

Re: [R] Calculating Portfolio Standard deviation

2011-01-10 Thread Joshua Wiley
Dear Amelia, If you have the actual data you should be able to use the variance covariance matrix to simplify this Vdat - cov(prices_df) sum(diag(Vdat)) + 2*Vdat[upper.tri(Vdat)] By using covariances instead of correlations you do not need to multiply by he standard deviations and by using

Re: [R] Step command failing for lm function

2011-01-10 Thread Joshua Wiley
Hi Noah, Are you able to reproduce the example on a smaller dataset? Do you have any strange variable names or I created a 3 x 100 matrix, fit a linear model and step has been running fine (other than bringing my poor netbook to it's knees). It also might be helpful if you could post

Re: [R] Changing a logical matrix into a numeric matrix

2011-01-10 Thread Joshua Wiley
Hi Emma, The easiest way I know uses a bit of a trick. If your matrix is named 'X' Then: X + 0 will convert it to numeric data. HTH, Josh On Jan 10, 2011, at 1:17, emj83 stp08...@shef.ac.uk wrote: Hi, I would like to turn my TRUE/FALSE matrix into a 1/0 matrix (i.e. True=1 and

Re: [R] Calculating Portfolio Standard deviation

2011-01-10 Thread Joshua Wiley
because when I consider (1,2), (1,3) or(1,4) it stores the value for B[1] only once and likewise. Kindly guide. regards Amelia --- On Mon, 10/1/11, Joshua Wiley jwiley.ps...@gmail.com wrote: From: Joshua Wiley jwiley.ps...@gmail.com Subject: Re: [R] Calculating Portfolio Standard

Re: [R] Lattice, combine histogram and line graph

2011-01-09 Thread Joshua Wiley
__ 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. -- Joshua Wiley Ph.D

Re: [R] Question on list objects

2011-01-08 Thread Joshua Wiley
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https

Re: [R] max.print

2011-01-08 Thread Joshua Wiley
]] __ 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. -- Joshua Wiley Ph.D. Student, Health Psychology University

Re: [R] Normal Distribution Quantiles

2011-01-08 Thread Joshua Wiley
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list

Re: [R] Problem with timeSequence {timeDate} - wrong end date

2011-01-07 Thread Joshua Wiley
Thank you, Martin (and all of R core) for all your work making such wonderful software available. Not only is it practical, using R, going through the source code and the documentation has been a huge learning experience for me. I am very grateful to you and everyone else for being so generous

Re: [R] plot without points overlap

2011-01-07 Thread Joshua Wiley
of the right side of the heatmap are not plot entirely. I tried par(mar..) par(pin..) but still cannot do it, any ideas? Thanks! g 2011/1/4 Joshua Wiley jwiley.ps...@gmail.com Hi, You can set the device region in inches using the pin argument (see ?par maybe halfway down or so).  You can

[R] help with environments

2011-01-07 Thread Joshua Wiley
output #Error in data.frame(x = var1, y = 1, check.names = TRUE, # stringsAsFactors = TRUE) : #object 'var1' not found ## It has the right names. This works: eval(substitute(data.frame(x = var1, y = 1)), mydf) ## it is like I am one environment too nested -- Joshua Wiley Ph.D. Student, Health

Re: [R] Problem with timeSequence {timeDate} - wrong end date

2011-01-06 Thread Joshua Wiley
, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Problem with timeSequence {timeDate} - wrong end date

2011-01-06 Thread Joshua Wiley
On Thu, Jan 6, 2011 at 5:27 AM, Joshua Wiley jwiley.ps...@gmail.com wrote: timeSequence() ultimately is relying on seq.POSIXt(). If you look at My apologies, I spoke nonsense---timeSequence() does NOT rely on seq.POSIXt(). The timeDate package has its own method defined for seq() which is what

Re: [R] R packages for R 2.11.1

2011-01-06 Thread Joshua Wiley
. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ 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] R not recognized in command line

2011-01-05 Thread Joshua Wiley
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https

Re: [R] R not recognized in command line

2011-01-05 Thread Joshua Wiley
On Wed, Jan 5, 2011 at 7:41 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: Editing the PATH is probably the best approach, but a lot of people get it wrong because of misunderstanding how it works:  -  If you change PATH in one process the changes won't propagate anywhere else, and will

Re: [R] plot without points overlap

2011-01-04 Thread Joshua Wiley
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Adding lines in ggplot2

2011-01-04 Thread Joshua Wiley
guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r

Re: [R] optimize

2011-01-03 Thread Joshua Wiley
/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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] Probably with default library tree

2011-01-02 Thread Joshua Wiley
and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Windows editor suggestions - autosave

2010-12-29 Thread Joshua Wiley
://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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] batch file output

2010-12-28 Thread Joshua Wiley
-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] package update

2010-12-26 Thread Joshua Wiley
Either switch the library path to a writable directory or run it as a su or sudo so you have the necessary permissions. Cheers, Josh On Dec 26, 2010, at 20:45, eric ericst...@aol.com wrote: I'm running Linux Ubuntu and tried to update my packages using the update.package() command. It

Re: [R] Removing rows with earlier dates

2010-12-24 Thread Joshua Wiley
://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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] Removing rows with earlier dates

2010-12-24 Thread Joshua Wiley
with(YourDataFrame, tapply(`Effective Date`, `RULE COLUMNS`,  function(x) x[which.max(x)])) David pointed out that this will just return a table of dates. One work around is: do.call(rbind, by(DataFrame, DataFrame[, RULE COLUMNS], function(x) x[which.max(x[, Effective Date]), ])) but that

Re: [R] selection of outputs from the function

2010-12-24 Thread Joshua Wiley
code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ 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] Help with RGL package problem

2010-12-15 Thread Joshua Wiley
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help

Re: [R] 300 dpi and eps:

2010-12-15 Thread Joshua Wiley
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] NA matrix operation

2010-12-15 Thread Joshua Wiley
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org

Re: [R] inconsistency with cor() - x must be numeric

2010-12-13 Thread Joshua Wiley
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. -- Joshua

Re: [R] inconsistency with cor() - x must be numeric

2010-12-13 Thread Joshua Wiley
)    acc_averages = rbind(acc_averages,c(chrY,mean(temp$V6)))    # Output overall correlation    correlation = cor(acc_averages[,2],gene_densities$avg_density)    cat(Correlation w/chrY:,correlation,'\n') On Mon, Dec 13, 2010 at 17:06, Joshua Wiley jwiley.ps...@gmail.com wrote: Hi Fincher, cor() only

[R] tcltk error compiling R 2.13.0 under Windows 7 x64

2010-12-13 Thread Joshua Wiley
or one of the readmes for Rtools. Thanks, Josh -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] tcltk error compiling R 2.13.0 under Windows 7 x64

2010-12-13 Thread Joshua Wiley
Hi Peter, On Mon, Dec 13, 2010 at 5:26 PM, Peter Langfelder peter.langfel...@gmail.com wrote: Just in case no one knowledgeable answers, here's my shot in the dark I switch between Windows and Linux so I'm always in the dark ;) (I'm mostly a linux user)... the compiler is looking for .h files

Re: [R] remove quotes from the paste output

2010-12-11 Thread Joshua Wiley
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r

Re: [R] Why do we have to turn factors into characters for various functions?

2010-12-11 Thread Joshua Wiley
, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] lapply getting names of the list

2010-12-09 Thread Joshua Wiley
and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] hi have a question about merging.

2010-12-08 Thread Joshua Wiley
/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https

Re: [R] longer object length is not a multiple of shorter object length

2010-12-07 Thread Joshua Wiley
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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http

Re: [R] getting the exact p value

2010-12-06 Thread Joshua Wiley
://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing

Re: [R] Appearance of Forest Plot

2010-12-06 Thread Joshua Wiley
-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. -- Joshua Wiley Ph.D. Student, Health Psychology University

Re: [R] Controlling print width settings for 'print' on command line

2010-12-06 Thread Joshua Wiley
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r

Re: [R] HOW to use str() after the survivalROC (or another library in R) to get optimal cut-off values

2010-12-05 Thread Joshua Wiley
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] less than or equal to glyph

2010-12-05 Thread Joshua Wiley
://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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] lm() and interactions in model formula for x passed as matrix

2010-12-05 Thread Joshua Wiley
__ 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. -- Joshua Wiley Ph.D. Student, Health Psychology University

Re: [R] Simple question on eval

2010-12-01 Thread Joshua Wiley
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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http

Re: [R] repeat write.table with the same code many times

2010-11-30 Thread Joshua Wiley
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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http

Re: [R] Outlier statistics question

2010-11-30 Thread Joshua Wiley
, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Simple question on eval

2010-11-30 Thread Joshua Wiley
, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ 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] Pass an operator to function

2010-11-30 Thread Joshua Wiley
/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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] Array help

2010-11-29 Thread Joshua Wiley
-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing

Re: [R] drop levels problem

2010-11-29 Thread Joshua Wiley
commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] drop levels problem

2010-11-29 Thread Joshua Wiley
Just to follow up on my own post a bit: xmelt$year[xmelt$year == first, drop = TRUE] will do what you want. I think because in the subset there are multiple columns not all of which are factor, the method for '[' being used is not the factor one that would drop unused levels. I did not make

Re: [R] R equivalent of Beaton's Sweep algorithm

2010-11-29 Thread Joshua Wiley
, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] subset

2010-11-29 Thread Joshua Wiley
code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ 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] How do I subtract sequential values ?

2010-11-28 Thread Joshua Wiley
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R

Re: [R] Array help

2010-11-28 Thread Joshua Wiley
. __ 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. -- Joshua Wiley Ph.D. Student, Health Psychology

Re: [R] Replacing several rows of a matrix at once

2010-11-28 Thread Joshua Wiley
-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] How do I subtract sequential values ?

2010-11-28 Thread Joshua Wiley
On Sun, Nov 28, 2010 at 7:58 PM, Peter Ehlers ehl...@ucalgary.ca wrote: Then, since this is R, here's the next step:  v - sample(50, 100, replace = TRUE)  result - diff(v) / v[-length(v)] Very nice! It did not even occur to me to use diff() in this case, though that is exactly what is needed

Re: [R] return vector of element names for vector, matrix or array

2010-11-27 Thread Joshua Wiley
://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. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com

Re: [R] lm regression

2010-11-26 Thread Joshua Wiley
the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/ __ R-help@r

<    3   4   5   6   7   8   9   10   11   12   >