[R] passing an extra argument to an S3 generic

2012-02-09 Thread Michael Friendly
(Rohwer.mod, m=2) hatvalues(Rohwer.mod, infl=mlm.influence(Rohwer.mod,m=2)) Can someone help me understand what is wrong and how to make the .mlm method allow m= to be passed directly to the infl= computation? thx, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor

Re: [R] 3D confidence ellipsoid with ellipse projections onto 2D plane

2012-02-08 Thread Michael Friendly
confidence ellipsoids for a model with projections on the XY and other planes is handled by the p3d package, only on R-Forge https://r-forge.r-project.org/projects/p3d/ It is in alpha development, and not completely documented. HTH -Michael -- Michael Friendly Email: friendly AT yorku DOT ca

[R] Using match.arg() with list of functions?

2012-01-31 Thread Michael Friendly
(foo2, FUN=tr) trA trB trC 1 118 65 80 2 62 85 99 3 108 86 98 4 110 23 129 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT

[R] tm package: handling contractions

2012-01-27 Thread Michael Friendly
processing, but I don't see a transformation in the tm package that handles this nicely. Is there something I've missed? -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb

[R] Announce: Summer Program in Data Analysis (SPIDA) 2012

2012-01-20 Thread Michael Friendly
inquiries about the Program, please contact Dr. Bryn Greer-Wootten via sp...@yorku.ca. -- Michael Friendly Email: frien...@yorku.ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Streethttp://www.math.yorku.ca/SCS/friendly.html

Re: [R] Using Sweave to generate multiple documents

2012-01-16 Thread Michael Friendly
On 1/16/2012 4:20 PM, Ramiro Barrantes wrote: Hello, I tried looking for a Sweave-specific list but didn't find one, nor did I find an answer via google, so will send this question to the general R list. Please feel free to point me in the right direction. I am using Sweave and would like

[R] influence measures for multivariate regression

2012-01-13 Thread Michael Friendly
Is there an R implementation anywhere for the generalizations of leverage, residual and influence measures to the multivariate regression context, e.g., as described by Barrett Ling (1992), JASA, 87(417), 184--191 ? -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor

Re: [R] colouring a table, data.frame or matrix in an interactive R session

2012-01-07 Thread Michael Friendly
On 1/7/2012 5:48 AM, drflxms wrote: Hi everybody, as I am dealing with complex confusion matrices, I wonder whether there might be a way to colour text/tabular data in R. I.e. imagine highlighting the true positive values or certain classes in a table. I know how to colour text in graphical

Re: [R] Getting Sphericity Tests for Within Subject Repeated Measure Anova (using car package)

2012-01-04 Thread Michael Friendly
and EBIDTA crossed with 4 time points each, you might want to look at the vignette HE Plots for Repeated Measures Designs in the heplots package for theory and examples vignette(repeated, package=heplots) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York

[R] Google student internships

2012-01-03 Thread Michael Friendly
The latest AmStatNews caught my eye with a list of student internships, including 6 positions with Google requiring 'high proficiency with R' among other things. www.google.com/intl/en/jobs/students/tech/internships/uscanada -- Michael Friendly Email: friendly AT yorku DOT ca Professor

Re: [R] Contingency tables example

2012-01-01 Thread Michael Friendly
On 12/28/2011 1:17 PM, David Winsemius wrote: Along those lines, Thompson's R accompaniment to Agresti's text on Categorical Data Analysis is simply wonderful: https://home.comcast.net/~lthompson221/SplusDiscrete.PDF It's not surprising that Agresti recommends it on the book's homepage:

Re: [R] Sweave options

2011-12-31 Thread Michael Friendly
On 12/30/2011 2:33 PM, Duncan Murdoch wrote: Remember that that list is not exhaustive, since it is an open-ended format. For example, the rgl package implements a driver that adds an option delay. (It also uses resolution, but other drivers use that too.) I imagine odfWeave has its own

Re: [R] overlaid filled contour plots: solved

2011-12-25 Thread Michael Friendly
AM, Michael Friendly wrote: I'm trying to make a set of contour plots of bivariate kernel density estimates, showing three such plots overlaid, similar to this plot http://euclid.psych.yorku.ca/SCS/Private/Test/ridge-boot2.pdf except that I would like to have the contours *filled* (using

[R] overlaid filled contour plots

2011-12-22 Thread Michael Friendly
: num [1:51, 1:51] 2.08e-04 1.60e-04 5.88e-05 1.08e-05 1.20e-06 ... Any ideas? -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT

[R] matrix multivariate bootstrap: order of results in $t component

2011-12-21 Thread Michael Friendly
them in a (2400=800x3) x 6 matrix or data.frame corresponding to stacking the matrices like the above for each bootstrap sample? thanks, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736

[R] How to scale arrows to approximately fill a plot region?

2011-12-07 Thread Michael Friendly
, ...) { arrows(xy[1], xy[2], xy[1]+lenxy[,1], xy[2]+lenxy[,2], length=length, angle=angle, ...) } ## How to determine scale so that vectors ~ fill the bounding box??? scale - 14 Arrows(origin, scale*vectors) -- Michael Friendly Email: friendly AT yorku DOT ca Professor

[R] finding interpolated values along an empirical parametric curve

2011-12-05 Thread Michael Friendly
(norm.beta), max(log.det), Variance vs. Shrinkage, cex=1.5, pos=4) }) # How to find the (x,y) positions for these values of lambda along the curve of log.det ~ norm.beta ? lambda.HKB - 0.004275357 lambda.LW - 0.03229531 -- Michael Friendly Email: friendly AT yorku DOT ca Professor

Re: [R] finding interpolated values along an empirical parametric curve

2011-12-05 Thread Michael Friendly
, however. I hope this helps, John -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Michael Friendly Sent: December-05-11 9:16 AM To: R-help Subject: [R] finding interpolated values along an empirical parametric curve Given

[R] format numbers without leading or trailing 0s

2011-11-29 Thread Michael Friendly
, .04, .08) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA __ R-help@r

[R] proportional area venn diagrams?

2011-11-11 Thread Michael Friendly
that drew them with proportional areas. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] replace double backslash with singel backslash

2011-11-04 Thread Michael Friendly
slashes in path names. Otherwise, ?normalizePath may help. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

[R] minimizing device-dependent code in graphics scripts

2011-10-27 Thread Michael Friendly
and starting number imgname - 'test' imgnum - 1 imgtype - NULL # screen output img() plot(1:10, main=paste(imgtype:, imgtype)) img.off() imgtype - pdf img() plot(10:1, main=paste(imgtype:, imgtype)) img.off() } -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept

[R] using predict.lm() within a function

2011-10-24 Thread Michael Friendly
, b, pos=4) }) From the latter, I get: Warning message: 'newdata' had 3 rows but variable(s) found have 10 rows -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb

[R] lattice::xyplot/ggplot2: plotting weighted data frames with lmline and smooth

2011-10-21 Thread Michael Friendly
=blue, lwd=2) }) thanks, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] lattice::xyplot/ggplot2: plotting weighted data frames with lmline and smooth

2011-10-21 Thread Michael Friendly
'), values = c('green', 'red')) + opts(legend.position = c(0.14, 0.885), legend.background = theme_rect(fill = 'white')) HTH, Dennis -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736

[R] non-parametric permutation and signed paired-difference distributions

2011-10-14 Thread Michael Friendly
, 3.625, 7, 3, 9.375, 7.5, -6)), row.names = c(NA, -15L), .Names = c(pair, pot, cross, self, diff), class = data.frame) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Street Web: http

Re: [R] non-parametric permutation and signed paired-difference distributions

2011-10-14 Thread Michael Friendly
, right? I mean to calculate mean (sign * abs(diff)) where sign is a vector of length 15 composed of some combination of (-1, +1). This is actually what Fisher did. It corresponds to assigning one member of each pair to cross / self -- Michael Friendly Email: friendly AT yorku DOT ca

Re: [R] non-parametric permutation and signed paired-difference distributions

2011-10-14 Thread Michael Friendly
hist(allmeans, breaks=64, xlab=Mean difference, cross-self, main=Histogram of all mean differences) abline(v=mean(ZeaMays$diff), col=red, lwd=2) abline(v=-mean(ZeaMays$diff), col=red, lwd=2, lty=2) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York

Re: [R] round() and negative digits

2011-10-10 Thread Michael Friendly
On 10/9/2011 6:18 AM, Prof Brian Ripley wrote: Sometimes it is better not to document things than try to give precise details which may get changed *and* there will be useRs who misread (and maybe even file bug reports on their misreadings). The source is the ultimate documentation. I can't

Re: [R] Understanding the workflow between sweave, R and Latex

2011-10-01 Thread Michael Friendly
On 9/30/2011 9:08 AM, syrvn wrote: Hi Duncan, I use Eclipse and StatET plus TexClipse and Sweave which comes with the StatET package. So fore me it is basically one click as well to produce the pdf from the .Rnw file. I installed the MacTex live 2011 version on my computer and thought it might

Re: [R] Quelplot

2011-09-22 Thread Michael Friendly
. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA __ R-help@r

Re: [R] question about glm vs. loglin()

2011-09-16 Thread Michael Friendly
No   153 8  H H No   266 9  L L Yes    35 10 L H Yes   133 11 LM L Yes    38 12 LM H Yes   303 13 UM L Yes    37 14 UM H Yes   467 15 H L Yes    26 16 H H Yes   800 [[alternative HTML version deleted]] -- Michael Friendly

Re: [R] Can 'mosaic' be used with a continuous variable?

2011-09-15 Thread Michael Friendly
[[alternative HTML version deleted]] [[alternative HTML version deleted]] -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT

[R] Read a list of files into named R data.frames

2011-09-09 Thread Michael Friendly
Read TeamsFranchises.csv rows: 120 cols: 4 Read TeamsHalf.csv rows: 52 cols: 10 Read Xref_Stats.csvrows: 2753 cols: 3 ls() [1] files i inp name -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736

Re: [R] Read a list of files into named R data.frames

2011-09-09 Thread Michael Friendly
: On Sep 9, 2011, at 10:39 AM, Michael Friendly wrote: I have a collection of .csv files in a directory, and want to read them into R data.frames whose names are the same as the file names, without the .csv extension e.g., from (files - list.files(pattern=*.csv)) [1] Allstar.csv

Re: [R] Lmer plot help

2011-09-04 Thread Michael Friendly
male2 20 22 female121 21 female230 19 Any help most appreciated. Drew -- View this message in context: http://r.789695.n4.nabble.com/Lmer-plot-help-tp3788613p3788613.html Sent from the R help mailing list archive at Nabble.com. -- Michael Friendly Email

[R] silently testing for data from another package for .Rd examples

2011-08-24 Thread Michael Friendly
, lib.loc, verbose = verbose) : there is no package called 'foobar' ddtry [1] Error in find.package(package, lib.loc, verbose = verbose) : \n there is no package called 'foobar'\n attr(,class) [1] try-error -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept

Re: [R] silently testing for data from another package for .Rd examples

2011-08-24 Thread Michael Friendly
in find.package(package, lib.loc, verbose = verbose) : \n there is no package called 'foobar'\n attr(,class) [1] try-error -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Street

Re: [R] obtaining p-values for lm.ridge() coefficients (package 'MASS')

2011-08-23 Thread Michael Friendly
. The documentation for ols refers to ?lrm for the description. Third, other ridge estimators (e.g., ElemStatLearn::simple.ridge also give slightly different results for the same data due to differences in the way scaling is handled. hth, -Michael -- Michael Friendly Email: friendly AT yorku

[R] ridge regression - covariance matrices of ridge coefficients

2011-08-06 Thread Michael Friendly
-0.002499936 0.020 0.009346751 0.040 0.030743969 0.080 0.054575402 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

[R] R 2.13.1 can't find package binaries on R-Forge

2011-07-31 Thread Michael Friendly
Patched (2011-07-22 r56481) ... Package up to date. Not building ... -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] R 2.13.1 can't find package binaries on R-Forge

2011-07-31 Thread Michael Friendly
... -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA [[alternative HTML version deleted

Re: [R] Packages for quasi-symmetry and quasi-independence

2011-07-08 Thread Michael Friendly
On 7/7/2011 9:14 PM, michael.laviole...@dhhs.state.nh.us wrote: Are there any packages with functions that can fit quasi-symmetry and quasi-indepedence models to square contingency tables? M. Laviolette Yes. See the gnm package for convenience functions that work with glm() and gnm(). See

Re: [R] Linear multivariate regression with Robust error

2011-06-10 Thread Michael Friendly
as whether there are any influential observations that are driving the estimated coefficients. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto

[R] rgl: insert pauses in animation sequence / movie formats other than gif?

2011-06-07 Thread Michael Friendly
. e.g., I tried using convert at in a command prompt window, convert -delay 1x8 coffee-av3D-1*.png coffee-av3D-1.mov but it seems that only one frame was used. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax

Re: [R] rgl: insert pauses in animation sequence / movie formats other than gif?

2011-06-07 Thread Michael Friendly
\dontrun{}. I take it that the times are relative rather than absolute, and time is scaled according to duration and fps when the scene is play3d()'d. Yes? If so, the description for time= could also be clarified. best, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca

Re: [R] rgl: insert pauses in animation sequence / movie formats other than gif?

2011-06-07 Thread Michael Friendly
On 6/7/2011 12:36 PM, Duncan Murdoch wrote: On 07/06/2011 12:22 PM, Michael Friendly wrote: On 6/7/2011 10:52 AM, Duncan Murdoch wrote: Something like this works: play3d(par3dinterp(times=c(0,5,6,11,12,17), userMatrix=list(m1,m1,m2,m2,m3,m3), method=linear

[R] weird error from MASS::eqcsplot with postscript driver

2011-06-01 Thread Michael Friendly
.x -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA __ R-help@r-project.org

[R] dir.choose analog of file.choose

2011-05-16 Thread Michael Friendly
Under Windows (and maybe others) you can use file.choose() as a substitute for an explicit file= argument in most places. Is there an analog for what I'll call dir.choose(), so that I can say setwd(dir.choose()) thx, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor

[R] generate multiple mvrnorm samples using apply-like

2011-05-07 Thread Michael Friendly
[2,] -0.1242431 2.480197 7.496188 3.140649 11.473915 [3,] 3.4688356 -0.415469 5.709368 8.188018 6.832460 [4,] -1.1691558 6.579454 2.153095 10.607982 9.053140 [5,] 0.8722773 5.121265 2.168577 7.392535 6.557844 [6,] 7.2737826 2.583776 9.490320 8.144200 11.243709 -- Michael Friendly

Re: [R] latex, eps graphics and transparent colors / sam2p

2011-05-03 Thread Michael Friendly
On 04/13/2011 05:06 PM, Ben Bolker wrote: Thomas Lumleytlumleyat uw.edu writes: On Thu, Apr 14, 2011 at 5:30 AM, Michael Friendlyfriendlyat yorku.ca wrote: I have a diagram to be included in latex, where all my figures are .eps graphics (so pdflatex is not an option) You could use

Re: [R] Best Practices for submitting packages to CRAN

2011-04-29 Thread Michael Friendly
On 4/28/2011 8:43 AM, Singmann wrote: Dear all, I (and a colleague) have been working on our first package (for fitting a certain type of cognitive models: http://www.psychologie.uni-freiburg.de/Members/singmann/R/mptinr) for quite a while now and have the feeling, that it is good to go. That

Re: [R] Statistical Tables Really Fast

2011-04-15 Thread Michael Friendly
On 4/14/2011 7:22 PM, Dirk Eddelbuettel wrote: Sorry, but this is the r-help list. The 'R Spam' list is over at /dev/null. Clearly a fortune candidate! -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax

[R] latex, eps graphics and transparent colors

2011-04-13 Thread Michael Friendly
high resolution to make the real diagram legible. It might suffice to use hcl() colors to approximate what I've done with transparency, but I don't know how to start with a given color (lightblue) and achieve roughly similar resuts. -- Michael Friendly Email: friendly AT yorku DOT ca

Re: [R] fonts in mosaic

2011-03-31 Thread Michael Friendly
and provide commented, minimal, self-contained, reproducible code. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3

Re: [R] various plotting options

2011-03-24 Thread Michael Friendly
points() and lines() after the call. I can send that to you if you like. HTH -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3

[R] how to convert a data.frame to a list of dist objects for individual differences MDS?

2011-03-22 Thread Michael Friendly
7.3 11.3 12.7 11.2 10.49.9 4.2 . . . 9 Pur15.4 11.5 12.9 11.7 10.89.4 8.4 4.5. . 10 Pur25.0 11.5 10.7 10.2 10.6 10.1 8.1 6.43 . -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York

Re: [R] how to convert a data.frame to a list of dist objects for individual differences MDS?

2011-03-22 Thread Michael Friendly
)) } result = lapply(as.data.frame(helm.raw),onecol) Thank you so much for this. Using the onecol function was the main trick I couldn't see. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416

Re: [R] Popularity of R, SAS, SPSS, Stata, Statistica, S-PLUS updated

2011-03-22 Thread Michael Friendly
is considered the dark-side of SAS-L. You know of the existence of SAS-L, but you haven't counted that traffic, AFAICS. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb

Re: [R] How to draw a map of Europe?

2011-03-20 Thread Michael Friendly
On 3/19/2011 8:32 PM, Sally Luo wrote: Also, is it possible to draw a historical map of European countries using R? If you want a map of France ~ 1830, see http://www.datavis.ca/gallery/guerry/guerrymap.html __ R-help@r-project.org mailing list

Re: [R] Does R have a const object?

2011-03-16 Thread Michael Friendly
, the best short answer is: No. This is just the flexibility of R. I've just discovered a new class of geometries based on pi - 2.3 ?Constants -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814

Re: [R] Teaching R: To quote, or not to quote?

2011-03-08 Thread Michael Friendly
) search() # displays package names in quotes detach(packages:Hmisc) # just as search displayed it FWIW, the style for JSS now enforces (via Achimitization) the use of quotes as you show above. -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York

[R] Sweave with scan()-ed data

2011-03-07 Thread Michael Friendly
.541 .447 .432.401 .381.402 .288 .541 .537.534 .35.367 .32 .555 .38 .358.359 .424.446 .325 .598 .452 @ \end{frame} \end{document} -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University

Re: [R] Writing R packages in an easier way?

2011-02-11 Thread Michael Friendly
On 2/11/2011 2:52 AM, Dr. Michael Wolf wrote: Dear R colleagues, ... From the point of the costs e. g. I had to learn writing help files in a TeX-like language. But I'm the typical Word user. My last TeX writings were done in the 1990s! If I'm changing only a letter in a source file (r-file

Re: [R] defining a formula method for a weighted lm()

2011-01-07 Thread Michael Friendly
60 [2,] 29 34 39 44 49 54 59 64 Regards, Martin Maechler, ETH Zurich -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto

Re: [R] defining a formula method for a weighted lm()

2011-01-06 Thread Michael Friendly
on lor.CM.df$Age would give me either the lower limits (here: seq(25, 60, by = 5)) or midpoints of these Age intervals (here: seq(27, 62, by = 5))? best, -Michael On 12/16/2010 9:43 AM, Michael Friendly wrote: In the vcdExtra package on R-Forge, I have functions and generic methods for calculating log

[R] OT: Reprinting of Bertin's Semiology of Graphics

2011-01-05 Thread Michael Friendly
graphical software provides even today. best, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

[R] icon for an R package

2010-12-29 Thread Michael Friendly
I'm looking for an icon to represent an R package. Perhaps something like http://cdn2.iconfinder.com/data/icons/DarkGlass_Reworked/128x128/apps/package.png but with the R logo rather than KDE. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University

Re: [R] icon for an R package

2010-12-29 Thread Michael Friendly
On 12/29/2010 11:02 AM, David Winsemius wrote: On Dec 29, 2010, at 10:03 AM, Michael Friendly wrote: I'm looking for an icon to represent an R package. Perhaps something like http://cdn2.iconfinder.com/data/icons/DarkGlass_Reworked/128x128/apps/package.png but with the R logo rather

Re: [R] icon for an R package

2010-12-29 Thread Michael Friendly
file manager application. Regards, Marc Schwartz -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] icon for an R package

2010-12-29 Thread Michael Friendly
Department of Sociology McMaster University Hamilton, Ontario, Canada web: socserv.mcmaster.ca/jfox -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Michael Friendly Sent: December-29-10 12:32 PM To: David Winsemius Cc: r-help@r

Re: [R] Subarray specification problem

2010-12-17 Thread Michael Friendly
in general, because the expression x[,which(t 20 t 80),] relies on the prior knowledge that the time dimension is the second one of three. Any ideas? Thanks! Roy -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax

[R] rgl: coordinating and saving viewpoints, zoom, scale for multiple images

2010-12-17 Thread Michael Friendly
2 mosaic3d(HEC, type=expected) # present this in the same orientation par3d(userMatrix=M1a) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca

[R] defining a formula method for a weighted lm()

2010-12-16 Thread Michael Friendly
, fung.lor.df) 1: lor(LOR ~ strain + sex, fung.lor.df) How can I make this work? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3

Re: [R] Number of dimension in Multidimensional Scaling

2010-12-09 Thread Michael Friendly
. and Groenen, P.: Modern Multidimensional Scaling: theory and applications (2nd ed.), Springer-Verlag New York, 2005 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb

Re: [R] latex() hangs R console

2010-12-08 Thread Michael Friendly
) - environment(latex) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

[R] latex() hangs R console

2010-12-07 Thread Michael Friendly
/file311f289a.dvi), intern=TRUE) system(paste(yap, C:/WINDOWS/TEMP/Rtmpz0QkT8/file311f289a.dvi)) However, both of these result in the same behavior -- R console hangs until I press ESC. -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University

Re: [R] latex tables for 3+ dimensional tables/arrays

2010-12-04 Thread Michael Friendly
Hi Rich, I was looking for something that I could make general, as a latex.ftable method for ftable objects. I realize you showed how to do this for a particular case, but I'm having a bit of trouble translating this into a general solution for 1 or more row variables and 1 or more col

Re: [R] latex tables for 3+ dimensional tables/arrays

2010-12-03 Thread Michael Friendly
like other latex() methods, but that shouldn't be too hard. -M -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] warning creating an as.array method in a package

2010-12-02 Thread Michael Friendly
will list the S4 methods (possibly none). Does the warning mean that I cannot (or should not) have an S3 as.array method in a package? The method works in my context, but the warning will create problems when I submit to CRAN, so I would rather avoid it. -- Michael Friendly Email: friendly

Re: [R] warning creating an as.array method in a package

2010-12-02 Thread Michael Friendly
On 12/2/2010 8:58 AM, Michael Friendly wrote: Under ?methods the Note says Functions can have both S3 and S4 methods, and function showMethods will list the S4 methods (possibly none). Does the warning mean that I cannot (or should not) have an S3 as.array method in a package? The method works

[R] latex tables for 3+ dimensional tables/arrays

2010-12-02 Thread Michael Friendly
= math.row.names, math.col.names = math.col.names, double.slash = double.slash, ...) 2: latex.default(UCB) 1: latex(UCB) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Street

Re: [R] latex tables for 3+ dimensional tables/arrays

2010-12-02 Thread Michael Friendly
{tabular} \end{center} \end{table} -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

[R] warning creating an as.array method in a package

2010-11-30 Thread Michael Friendly
figure out where this might have come from. Has anyone seen this before? Where might an S4 version of as.array be found? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb

[R] R equivalent of Beaton's Sweep algorithm

2010-11-29 Thread Michael Friendly
http://adorio-research.org/wordpress/?p=262 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

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

2010-11-29 Thread Michael Friendly
Bingo-- that's it exactly. Thanks! On 11/29/2010 3:46 PM, Peter Ehlers wrote: On 2010-11-29 12:29, Michael Friendly wrote: I'm looking for an R equivalent of Beaton's (1964) Sweep algorithim for partial inversion of a matrix by pivoting. ... Check swp() in pkg:ggm. Peter Ehlers

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

2010-11-28 Thread Michael Friendly
= :) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA __ R-help@r

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

2010-11-27 Thread Michael Friendly
(2,3,2)) dimnames(x3)=list(R=letters[1:2], C=LETTERS[1:3], L=tail(letters,2)) # wanted for this case: as.vector(outer(vecnames(x2), dimnames(x3)[[3]], paste, sep=':')) [1] a:A:y b:A:y a:B:y b:B:y a:C:y b:C:y a:A:z b:A:z a:B:z b:B:z a:C:z b:C:z -- Michael Friendly Email: friendly AT yorku DOT

Re: [R] How to produce glm graph

2010-11-21 Thread Michael Friendly
As others have noted, you can use predict() to get the fitted values and then plot them 'manually' using basic plotting functions in R. However, you will probably find it easier to use the effects package, which is designed for exactly this task. e.g., install.packages(effects) # if necessary

[R] printCoefmat() for a data.frame with factors

2010-11-19 Thread Michael Friendly
‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA

Re: [R] : unusual combinations of categorical data

2010-11-09 Thread Michael Friendly
in the null model. Fit the model with loglm() or glm(), and use vcd::mosaic() to visualize the outliers. HTH -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http

Re: [R] About 5.1 Arrays

2010-11-07 Thread Michael Friendly
Hi Stephan Since early in November you have posted queries on R-help on 5 different topics as you are trying to learn to use R. This is a good thing, and many contributors to R-help have replied, taking pains to provide explanations and examples to be helpful. But, in return, it doesn't

Re: [R] 3-way interaction simple slopes

2010-11-07 Thread Michael Friendly
You would get more helpful replies if you indicated which among MONTHS, CEXPOSE.M and bf.m were factors vs. covariates, and for which factor or factors you wanted to test the simple slopes. You will find that linearHypothesis in the car package can test these things, and the effects package can

Re: [R] table with values as dots in increasing sizes

2010-11-06 Thread Michael Friendly
This is a tableplot, available on R-Forge at https://r-forge.r-project.org/projects/tableplot/ install.packages(tableplot, repos=http://R-Forge.R-project.org;) will install, as long as you are using R 2.12.x; otherwise, you'll have to download the source package and install from source.

Re: [R] Orthogonalization with different inner products

2010-11-04 Thread Michael Friendly
[,j]=v[,j]-u } Thanks, Andrew [[alternative HTML version deleted]] -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele StreetWeb: http://www.datavis.ca

[R] extracting characteristics of datasets from data()

2010-10-25 Thread Michael Friendly
dim(Mental) [1] 24 3 for all datasets in Item, giving a display like Item class dim Title Abortion table 2x2x2 Abortion Opinion Data Mentaldata.frame 24x2Mental impariment and parents SES -- Michael Friendly Email: friendly AT yorku DOT ca Professor

Re: [R] Poisson Regression

2010-10-14 Thread Michael Friendly
*. This is equivalent to gnm( lambda ~ -1 + Subject Row + Col, family=poisson) except that Subject parameters aren't estimated explicitly. See vignette(gnmOverview) -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax

Re: [R] plyr: a*ply with functions that return matrices-- possible bug in aaply?

2010-10-06 Thread Michael Friendly
16 Male 3253 10 , , Eye = Blue Hair Sex Black Brown Red Female 934 7 Male 1150 10 , , Eye = Hazel Hair Sex Black Brown Red Female 529 7 Male 1025 7 -- Michael Friendly Email: friendly AT yorku DOT ca

[R] R: Tools for thinking about data analysis and graphics

2010-10-06 Thread Michael Friendly
and function objects, (b) object-oriented methods (S3 S4); (c) function mapping over data with *apply methods and plyr. What other language features of R should be on this list? I would welcome suggestions (and brief illustrative examples). -Michael -- Michael Friendly Email: friendly

Re: [R] R: Tools for thinking about data analysis and graphics

2010-10-06 Thread Michael Friendly
to other aspects (plots, tables, etc.) is another important R feature of the type I'm considering. I would put this in the top 5! -Michael -- Michael Friendly Email: frien...@yorku.ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele

<    1   2   3   4   5   >