[R] Accessing methods and extending S4 classes of existing packages

2008-06-28 Thread Johannes Huesing
Dear all, I am trying to understand how to access S4 methods after loading a package, using the online documentation of getMethod and friends. This is what I have been trying: > library(coin) > findMethods("ApproxNullDistribution") list() Warning message: In findMethods("ApproxNullDistribution")

Re: [R] Accessing methods and extending S4 classes of existing packages

2008-06-29 Thread Johannes Huesing
Johannes Huesing <[EMAIL PROTECTED]> [Sun, Jun 29, 2008 at 08:13:27AM CEST]: > Dear all, > I am trying to understand how to access S4 methods after loading a > package, using the online documentation of getMethod and friends. > I am just realizing that the lack of online d

Re: [R] Accessing methods and extending S4 classes of existing packages

2008-06-29 Thread Johannes Huesing
Johannes Huesing <[EMAIL PROTECTED]> [Sun, Jun 29, 2008 at 08:13:27AM CEST]: > Dear all, > I am trying to understand how to access S4 methods after loading a > package, using the online documentation of getMethod and friends. > > This is what I have been trying: > > li

Re: [R] Sunset in Dortmund

2008-07-02 Thread Johannes Huesing
Marc Schwartz <[EMAIL PROTECTED]> [Wed, Jul 02, 2008 at 06:22:40PM CEST]: > For those attending useR! 2008 next month, something to look forward to: > > http://www.gnome-look.org/content/show.php/show.php?content=84455 THIS is a sunset over Dortmund: http://www.23hq.com/mBusolt/photo/2230816 D

Re: [R] Sunset in Dortmund

2008-07-03 Thread Johannes Huesing
Marc Schwartz <[EMAIL PROTECTED]> [Thu, Jul 03, 2008 at 05:57:01PM CEST]: >> >> Lots of train fans would pay extra for a hotel with such a view > > At the peril of taking this thread further astray, I agree, having been > one in my youth growing up in and around New York City in the 60's and >

[R] Interpreting messages when building packages

2008-07-06 Thread Johannes Huesing
Dear expRts, when I try to build a package by myself, the process fails writing the following messages to 00install.out: * Installing *source* package 'dynalc' ... ** libs WARNING: no source files found chmod: Zugriff auf „/home/hannes/texte/forschung/clot/programme/dynalc.Rcheck/dynalc/libs/*“ n

Re: [R] Interpreting messages when building packages

2008-07-07 Thread Johannes Huesing
> The earlier messages suggest that you have automatically produced help > files (from package.skeleton) and haven't edited them. I'd suggest > moving them to a temporary directory until you're ready to edit them > properly. ok, that get's me a little bit closer to a minimal working example

Re: [R] Interpreting messages when building packages

2008-07-07 Thread Johannes Huesing
Duncan Murdoch <[EMAIL PROTECTED]> [Mon, Jul 07, 2008 at 09:24:07PM CEST]: > You didn't say how you were doing the install, but the directory name > looks like one that was used by R CMD check (.../dynalc.Rcheck/dynalc). No, that was an attempt to install during a call to R CMD check. -- Joh

Re: [R] Interpreting messages when building packages

2008-07-07 Thread Johannes Huesing
Duncan Murdoch <[EMAIL PROTECTED]> [Mon, Jul 07, 2008 at 09:57:50PM CEST]: > Does a plain install succeed? No, the error messages look familiar: * Installing to library '/usr/local/lib/R/site-library' * Installing *source* package 'dynalc' ... ** libs WARNING: no source files found chmod: Zugrif

Re: [R] Interpreting messages when building packages

2008-07-07 Thread Johannes Huesing
This message goes away when I empty the data directory. The problem must be around there. > Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : > line 12 did not have 19 elements -- Johannes Hüsing There is something fascinating about science.

[R] Another packaging question

2008-07-12 Thread Johannes Huesing
I am still trying to build a package. At the moment I am stuck with a file not found error message when processing R code from the tests subdirectory. What would be the accurate relative path for files in the tests directory to access files in the data directory? -- Johannes Hüsing T

Re: [R] Another packaging question

2008-07-13 Thread Johannes Huesing
Uwe Ligges <[EMAIL PROTECTED]> [Sat, Jul 12, 2008 at 11:48:38AM CEST]: > > > Johannes Huesing wrote: >> I am still trying to build a package. At the moment I am stuck with a >> file not found error message when processing R code from the tests >> subdirectory. Wh

[R] initialize a factor vector

2008-07-13 Thread Johannes Huesing
What is the least surprising way of initializing a factor with predefined levels and with length 0? as.factor(c("eins", "zwei", "drei"))[FALSE] does the job but looks a bit weird. -- Johannes Hüsing There is something fascinating about science. One

Re: [R] initialize a factor vector

2008-07-13 Thread Johannes Huesing
Gavin Simpson <[EMAIL PROTECTED]> [Sun, Jul 13, 2008 at 08:18:37PM CEST]: > On Sun, 2008-07-13 at 18:47 +0200, Johannes Huesing wrote: [...] > > as.factor(c("eins", "zwei", "drei"))[FALSE] > > does the job but looks a bit weird. > > [..

Re: [R] shapiro wilk normality test

2008-07-13 Thread Johannes Huesing
Frank E Harrell Jr <[EMAIL PROTECTED]> [Sun, Jul 13, 2008 at 08:07:37PM CEST]: > (Ted Harding) wrote: >> On 13-Jul-08 13:29:13, Frank E Harrell Jr wrote: >>> [...] >>> A large P-value means nothing more than needing more data. No >>> conclusion is possible. Please read the classic paper Absence

Re: [R] shapiro wilk normality test

2008-07-13 Thread Johannes Huesing
Ted Harding <[EMAIL PROTECTED]> [Sun, Jul 13, 2008 at 10:59:21PM CEST]: > On 13-Jul-08 19:53:47, Johannes Huesing wrote: > > Frank E Harrell Jr <[EMAIL PROTECTED]> [Sun, Jul 13, 2008 at > > 08:07:37PM CEST]: > >> (Ted Harding) wrote: > >>>

Re: [R] Landscape mode for pdf

2008-07-18 Thread Johannes Huesing
[EMAIL PROTECTED] <[EMAIL PROTECTED]> [Fri, Jul 18, 2008 at 05:04:15PM CEST]: [...] > Generally, this communication is for informational purposes only > and it is not intended as an offer or solicitation for the purchase > or sale of any financial instrument or as an official confirmation > of any

Re: [R] initialize a factor vector

2008-07-19 Thread Johannes Huesing
I have found that factor vectors are shy beasts. Consider: > empty <- factor(levels=c("eins", "zwei")) > value <- factor("eins", levels=c("eins", "zwei")) > c(empty, value) [1] 1 > empty[1] <- value > empty [1] eins Levels: eins zwei > I could not exactly predict this behaviour, but ?c says:

Re: [R] Discretize continous variables....

2008-07-19 Thread Johannes Huesing
Frank E Harrell Jr <[EMAIL PROTECTED]> [Sat, Jul 19, 2008 at 08:03:01PM CEST]: > But even then > why condition on incomplete information when complete information is > available? I.e., why compute Pr(Y=1 | X>x) in place of Pr(Y=1 | X=x)? Because regulatory bodies demand it? Being employed in

Re: [R] Discretize continous variables....

2008-07-20 Thread Johannes Huesing
Frank E Harrell Jr <[EMAIL PROTECTED]> [Sun, Jul 20, 2008 at 12:20:28AM CEST]: > Johannes Huesing wrote: >> Because regulatory bodies demand it? [...] > > And how anyway does this > relate to predictors in a model? Not at all; you're correct. I was mixing the top

Re: [R] Coefficients of Logistic Regression from bootstrap - how to get them?

2008-07-23 Thread Johannes Huesing
It seems you have accidentally hit a surgeons' mailing list where all you wanted was some advice how to use this scalpel on your body. Sorry if we can't be of any help without intimidating you with unrelated and pompous terms -- like coagulation. Michal J. Figurski <[EMAIL PROTECTED]> [Wed, Jul 23

Re: [R] Object-oriented programming in R for Java programmers?

2008-07-27 Thread Johannes Huesing
Werner Wernersen <[EMAIL PROTECTED]> [Sun, Jul 27, 2008 at 01:55:26PM CEST]: [...] > Is there any brief tutorial on oo programming in R > especially for people who have done oo in Java or C++ > before? That would be really helpful. "How S4 methods work" highlights the differences between R's funct

Re: [R] HI

2008-09-16 Thread Johannes Huesing
Amit Patel <[EMAIL PROTECTED]> [Tue, Sep 16, 2008 at 03:32:01PM CEST]: > Does anyone know an easy way to convert all the zero values in a imported csv > table into NA's Depends on the data structure you gave your imported table. In a single numeric vector (named, say, vec), the syntax is is.na(

Re: [R] AT&T Researchers and the New York Times

2009-01-08 Thread Johannes Huesing
stephen sefick [Fri, Jan 09, 2009 at 03:16:11AM CET]: > It has worked wonders for me over the last years. > On Thu, Jan 8, 2009 at 8:58 PM, Robert Wilkins wrote: > > And by the way, ARE YOU GUYS EVER GOING TO FIX your mailing list > > platform? It is extremely user-unfriendly and a technologic

Re: [R] R in the NY Times

2009-01-10 Thread Johannes Huesing
Bert Gunter [Sat, Jan 10, 2009 at 08:31:03PM CET]: [...] > Perhaps an argument is that certain code might not get written at all if it > were not proprietary. Device drivers might be an example. Device drivers are not an example. Linux is ubiquitous _despite_ device manufacturers being secretiv

Re: [R] Welcome to the "R-help" mailing list

2009-01-29 Thread Johannes Huesing
Bishwa S Koirala [Thu, Jan 29, 2009 at 08:56:17PM CET]: >> You must know your password to change your options (including changing >> the password, itself) or to unsubscribe. It is: >> It is definitely a good idea to change your password ASAP. -- Johannes Hüsing There is somethin

Re: [R] Monty Hall simulation

2008-05-11 Thread Johannes Huesing
cirrus74 <[EMAIL PROTECTED]> [Sun, May 11, 2008 at 03:44:46AM CEST]: > > Is it possible to simulate the Monty Hall problem using R? If so, could > someone please show me how? Thanks for any help rendered. The kind of simulation, as any thinking about this seeingly paradoxical situation, depends o

Re: [R] (no subject)

2008-11-18 Thread Johannes Huesing
Salas, Andria Kay <[EMAIL PROTECTED]> [Tue, Nov 18, 2008 at 04:10:06PM CET]: > I need help with another problem I am having that deals with the generation > of vectors that I asked about yesterday. I now need to have each value in > the vector (all values either 1 or -1) have a probability p tha

Re: [R] Examples of advanced data visualization

2008-11-29 Thread Johannes Huesing
Tom Backer Johnsen <[EMAIL PROTECTED]> [Fri, Nov 28, 2008 at 10:13:04PM CET]: > Hans W. Borchers wrote: [...] >> >> Please answer to my e-mail address. In case enough interesting material comes >> up, I will enter a summary here. > > It is nice that you are willing to summarize whatever appears, bu

[R] Formula parsing and updating

2008-12-04 Thread Johannes Huesing
Hi all, I can't come over a problem with formula. Suppose I have a coxmod model with the following formula: > somemod$formula Surv(lebzeit, tot == 1) ~ sex + (alter >= 65) + diff3k + zelltyp_k_c + q_nuc_3k + kar_k80_g80 + stadium and I want to drop the stadium explanatory variable from the m

Re: [R] Formula parsing and updating

2008-12-05 Thread Johannes Huesing
Charles C. Berry <[EMAIL PROTECTED]> [Fri, Dec 05, 2008 at 01:21:41AM CET]: > On Thu, 4 Dec 2008, Johannes Huesing wrote: >>> somemod$formula >> Surv(lebzeit, tot == 1) ~ sex + (alter >= 65) + diff3k + zelltyp_k_c + >>q_nuc_3k + kar_k80_g80 + stadium >

Re: [R] R and Scheme

2008-12-09 Thread Johannes Huesing
Stavros Macrakis <[EMAIL PROTECTED]> [Wed, Dec 10, 2008 at 04:59:25AM CET]: > So I conclude that what is really meant by "R semantics are based on Scheme > semantics" is "R has functions as first-class citizens and a correct > implementation of lexical scope, including upwards funarg". > One othe

Re: [R] Problems in Recommending R

2009-02-12 Thread Johannes Huesing
Andrew Choens [Thu, Feb 12, 2009 at 04:56:33PM CET]: > * Quick-R - http://www.statmethods.net/ > * The R Inferno - www.burns-stat.com/pages/Tutor/R_inferno.pdf > * Rseek.org As an aside: Last time I tried, rseek.org yielded no results when searching for "inferno". --

Re: [R] Adjusting confidence intervals for paired t-tests of multiple endpoints

2009-02-28 Thread Johannes Huesing
Erich Studerus, Psychiatrische Uni-Klinik [Sat, Feb 28, 2009 at 09:23:05PM CET]: > Thanks, but as far as I know the multcomp package and the tukeyHSD > function can only handle one dependent variable, whereas I have 60 > dependent variables. Couldn't you re-phrase your model by including timep

Re: [R] R on netbooks et al?

2009-03-06 Thread Johannes Huesing
chaogai [Thu, Mar 05, 2009 at 07:04:19PM CET]: > I'm having similar experiences on my Acer Aspire One. Everything will > work good. Only thing that takes a lot of time is compiling R if you are > in the habit of doing so. > On the Fedora version that came with my Acer Aspire One, I am even think

Re: [R] standard error for median

2009-03-07 Thread Johannes Huesing
Ralph Scherer [Sat, Mar 07, 2009 at 10:34:28PM CET]: > Dear Prof. Ripley, > > thank you for your fast answer. > But which book do you mean? > I can't find an MASS book. Try library(MASS) citation(package="MASS") -- Johannes Hüsing There is something fascinating about science.

[R] libRlapack.so not found

2009-03-21 Thread Johannes Huesing
Whenever I try to load the Matrix package, I get the following error message: libRlapack.so: cannot open shared object file: No such file or directory A file with that name is indeed not on the hard disk. I am using the R version which comes with Ubuntu Hardy Heron LTS. Here is the output of R.Ver

Re: [R] libRlapack.so not found

2009-03-22 Thread Johannes Huesing
Johannes Huesing [Sat, Mar 21, 2009 at 08:12:05AM CET]: > Whenever I try to load the Matrix package, I get the following error > message: > libRlapack.so: cannot open shared object file: No such file or directory > A file with that name is indeed not on the hard disk. http://l

Re: [R] Selecting closest values

2009-03-22 Thread Johannes Huesing
P_M [Sun, Mar 22, 2009 at 06:48:36PM CET]: > > Hi > I have a table with ID (1 to 183) and Location (144 to -22). > My problem is that I want to select the 10 ID's that are closest in Location > to ID 1, ID 2 and so on. > Also, some ID have the same Location. Say, if 11 ID's are closest to ID 100

Re: [R] generalized Poisson regression

2009-03-27 Thread Johannes Huesing
Arafat Ud Zaman [Tue, Mar 24, 2009 at 06:26:59PM CET]: > Dear sir, > I want to know about R command for parameter estimation for generalized > Poisson regression. > Do you mean the method of Consul and Shoukri? I once tried Generalized Poisson parameter estimation by their suggestion side by si

Re: [R] Selecting elements from a vector (a simple question with weird results)

2009-03-28 Thread Johannes Huesing
Tal Galili [Sat, Mar 28, 2009 at 06:48:36PM CET]: > Hello people. > > I wish to reorder a simple vector of numbers by another vector of the order > (and then do the same, but with a data frame rows) > > I try this (which doesn't work) : > > aa <- c(3, 1 ,2 ) > > aa[aa] > [1] 2 3 1 To my mind, i

[R] Frailty models and omnibus test

2009-03-29 Thread Johannes Huesing
This is very possibly not a question on R. I was under the impression that the argument that gives rise to Fisher's LSD method in ANOVA works in other situations with three-way comparisons too, given that formal logic works the same ("if the omnibus test rejects, only two of the three groups may b

Re: [R] Separating variables in read.table

2009-04-17 Thread Johannes Huesing
Richardson, Patrick [Fri, Apr 17, 2009 at 09:31:35PM CEST]: > If I have a table (we'll call it, "test") containing seven columns (as below): > > i x1 x2 x3 x4 x5 y > 0 1.125 0.232 7.160 0.0859 8.905 1.5563 > 7 0.920 0.268 8.804 0.0865 7.388 0.8976

Re: [R] Binomial simulation

2009-04-17 Thread Johannes Huesing
beetle2 [Fri, Apr 17, 2009 at 11:28:56PM CEST]: > > Hi Guy's > I was wondering if someone could point me in the right direction. > > dbinom(10,1,0.25) > > I am using dbinom(10,1,0.25) to calculate the probabilty of 10 judges > choosing a certain brand x times. dbinom returns the discrete dens

Re: [R] Binomial simulation

2009-04-19 Thread Johannes Huesing
beetle2 [Sun, Apr 19, 2009 at 03:01:43AM CEST]: > > I'm thinking I will just use: > results <- rbinom(1000, 10, .25) > d = sum(results == 0 ) > df = (d/1000) > df > > And do each individually ok, at least you are trying some things out for yourself. In fact, along with reading the doc, this is

Re: [R] get() versus getAnywhere()

2009-04-19 Thread Johannes Huesing
Rolf Turner [Sun, Apr 19, 2009 at 10:01:34PM CEST]: > > On 19/04/2009, at 9:45 PM, Duncan Murdoch wrote: > >> On 18/04/2009 8:47 PM, Rolf Turner wrote: >>> On 17/04/2009, at 10:21 PM, Duncan Murdoch wrote: >>> Benjamin Tyner wrote: > Many thanks Duncan. Perhaps this merits a more explicit

Re: [R] Gamma

2009-05-16 Thread Johannes Huesing
Kon Knafelman [Sat, May 16, 2009 at 08:49:44AM CEST]: > > Hey, > > I am having trouble graphing the following function > > ???2??(n/2)/[???n ??? 1??((n ??? 1)/2 for the values of n between 2 and 50. > > i know that ??(n) = (n-1)!, which in R is factorial(n-1) > > When i type that into R, usin

Re: [R] Reading from Google Docs

2009-07-09 Thread Johannes Huesing
Gabor Grothendieck [Wed, Jul 08, 2009 at 10:31:30PM CEST]: [...] > >>> > >>>    [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list > https://stat.et

Re: [R] Best R text editors?

2009-09-10 Thread Johannes Huesing
Martin Maechler [Wed, Sep 02, 2009 at 09:17:42AM CEST]: > > "PaCo" == p connolly > > on Wed, 02 Sep 2009 12:19:31 +1200 writes: > > PaCo> On Mon, 31-Aug-2009 at 08:25PM +1000, Jim Lemon wrote: > PaCo> [...] [...] > PaCo> |> Emacs still > PaCo> |> has that annoying tr

Re: [R] How to write loop

2009-06-13 Thread Johannes Huesing
Alex Roy [Sun, Jun 14, 2009 at 06:43:52AM CEST]: > Hi Jiim, Thanks . I want to do the following: > > 1. each time I need to drop one column, say first column 1 from matrix X. > 2 then take out row 1 of the remainning matrix and that row becomes > response (y) > 3. do lasso regression on remain