search for: yee

Displaying 20 results from an estimated 133 matches for "yee".

Did you mean: ye
2006 Oct 27
0
VGAM package released on CRAN
Dear useRs, upon request, the VGAM package (currently version 0.7-1) has been officially released on CRAN (the package has been at my website http://www.stat.auckland.ac.nz/~yee/VGAM for a number of years now). VGAM implements a general framework for several classes of regression models using iteratively reweighted least squares (IRLS). The key ideas are Fisher scoring, generalized linear and additive models, IRLS and vector smoothing. It is a large R package that fits ma...
2008 Oct 29
4
How to get the duplicated elements from a vector?
Dear all, How can I get the duplicated elements from a vector? For example, x <- c("yes", "no", "yes", "yes", "no", "not sure"), how can I filter out all the elements which occured >=2 times? Thanks for any help! Regards, Leon
2004 Aug 20
8
wxruby-swig: where does wxclasses-2.4.2.xml comes from?
...le the WxDialog class. OnXXX are non-virtual in WxWidgets, but virtual in wxruby-swig ShowModal are virtual in WxWidgets, but non-virtual in wxruby-swig I realize that wxruby-swig is in a very highly experimental stage, but would appreciate it if someone can shed some light here. Cheers, Phuah Yee Keat
2018 Dec 13
2
Documentation examples for lm and glm
...rwards. For the glm(), the data frame d.AD is constructed but not used. Also, its 3 components were assigned first in the general workspace, so they float around dangerously afterwards like in the lm() example. Rather than attached improved .Rd files here, they are put at www.stat.auckland.ac.nz/~yee/Rdfiles You are welcome to use them! Best, Thomas
2010 Aug 16
2
re-order the rows of a data frame accroding to a specified order of some column
Dear all, I have a data frame with several columns, and I have the specified order of a given column. How can I re-order the rows of my data frame accroding to this specified order? for example, x = data.frame( num = 1:26, alpha = letters[1:26], stringsAsFactors=FALSE) z = sample(x$alpha, replace=FALSE) Can I re-order x accroding to z ? Thanks, Leon [[alternative HTML version
2005 Sep 01
1
controlling where *.Rout gets printed. Possible?
...aLAPACK","rsprng","RWinEdt","taskPR") shouldFail <- theNew %in% failPackages install.packages( theNew[!shouldFail],dependencies=T) # VGAM is not in CRAN yet, but Zelig wants it. # install.packages("VGAM", CRAN="http://www.stat.auckland.ac.nz/~yee"); update.packages(CRAN="http://www.stat.auckland.ac.nz/~yee") -------------------------------------- -- Paul E. Johnson email: pauljohn at ku.edu Dept. of Political Science http://lark.cc.ku.edu/~pauljohn 1541 Lilac Lane, Rm 504 University of...
2008 Jul 18
2
with lapply() how can you retrieve the name of the object
In the following code, I'd like to be able to create a new variable containing the value of the names of the list. a <- data.frame(var.1 = 1:5) b <- data.frame(var.1 = 11:15) test.list <- list(a=a, b=b) # in this case, names(test.list) is "a" and "b" # and I'd like to use lapply() so that # I get something that looks like # var.1 var.2 # 1 a # 2
2010 Apr 09
3
using as.numeric() without generating warning message
I'm interested in testing whether or not a character string is numeric or not as follows: is.na(as.numeric('3')) # returns F is.na(as.numeric('A')) # I'd like this to return T without issuing a warning about NAs introduced by coercion. I guess you could suppress the warning with options(warn=-1), but I was wondering if there's an alternative. Or perhaps an
2018 Dec 14
7
Documentation examples for lm and glm
...Behalf Of Ben > Bolker > Sent: 13 December 2018 20:36 > To: r-devel at r-project.org > Subject: Re: [Rd] Documentation examples for lm and glm > > > Agree. Or just create the data frame with those variables in it > directly ... > > On 2018-12-13 3:26 p.m., Thomas Yee wrote: > > Hello, > > > > something that has been on my mind for a decade or two has > > been the examples for lm() and glm(). They encourage poor style > > because of mismanagement of data frames. Also, having the > > variables in a data frame means that predict...
1999 Aug 30
3
model.matrix()
Hi, In R I get the following: > x <- 1:9 > f <- as.factor(1:9) > i <- model.matrix(~x+f) > > attr(i, "assign") [1] 0 1 2 2 2 2 2 2 2 2 whereas in S I get the following: > attr(i, "assign") $"(Intercept)": [1] 1 $x: [1] 2 $f: [1] 3 4 5 6 7 8 9 10 Has anybody written a model.matrix function to get the same result as S?
2018 Dec 16
3
Documentation examples for lm and glm
...> Subject: Re: [Rd] Documentation examples for lm and glm >>>>> >>>>> >>>>> Agree. Or just create the data frame with those variables in it >>>>> directly ... >>>>> >>>>> On 2018-12-13 3:26 p.m., Thomas Yee wrote: >>>>>> Hello, >>>>>> >>>>>> something that has been on my mind for a decade or two has >>>>>> been the examples for lm() and glm(). They encourage poor style >>>>>> because of mismanagement of data fra...
2004 Jan 26
3
Fortran source code
...it is possible to view the Fortran source code called by R functions. In particular, I am interested in the "leaps.setup" function in a package called "leaps", which calls Fortran functions "ssleaps", "initr" etc. Any help would be greatly appreciated. Ka Yee Yeung Bioinformatics Scientist Dept of Microbiology University of Washington
2005 Nov 23
1
survdiff for Left-truncated and right-censored data
dear all, I would like to know whether survdiff and survReg function in the survival package work for left-truncated and right-censored data. If not, what other functions can i use to make comparison between two survival curves with LTRC data. thanks for any help given sing yee
2008 Oct 17
2
A question about "union"
Dear all, I have a question about "union". "union" handles two vectors' elements to get their union, but I have many vectors and I want to get the union of all of them. So I wrote a loop: all <-c(); for(var in ls(pattern="xyz")) # all of the vectors with pattern of "xyz" { all <- union(all, var); } but the result is like this:
2009 Jun 25
3
what happened to the xlsReadWrite package
A naive question: what happened to the xlsReadWrite package? http://cran.r-project.org/web/packages/xlsReadWrite/ It says that it was removed from the CRAN repository. Are there any plans for it be available again? Thanks, Andrew [[alternative HTML version deleted]]
2009 Oct 03
2
converting matrix of lists to a regular matrix
Take the following code: foo <- list() foo[[1]] <- list(a=1, b=2) foo[[2]] <- list(a=11, b=22) foo[[3]] <- list(a=111, b=222) result <- do.call(rbind, foo) result[,'a'] In this case, result[,'a'] shows a list. Is there a more elegant way such that result is a "regular" matrix of vectors? I imagine there are manual ways of going about this, but I was
2009 Oct 23
2
how do you know which functions are being debugged?
This is kind of a dumb question: I know you can use isdebugged() to find out if a specific function is flagged for debugging, but is there a way to list all the functions that are flagged for debugging? Thanks, Andrew [[alternative HTML version deleted]]
2004 Aug 25
3
wxclasses-2.4.2.xml
...have thought about this before already, any specific problems?), or continue with the template generator in the current wxruby-4.0. The RUBY port of the SWIG seemed to be developed by the author of FXRUBY, guess it might be good to communicate with the FXRUBY camp as well, then. Cheers, Phuah Yee Keat
2008 Jun 16
2
in axis() suppressing axis line but keeping tick marks
I've been trying to figure out a parameter that will let you separately adjust the parameters for the axis line from the tick mark. In the following example, I would like to suppress the axis line, but keep the tick marks. Thanks, Andrew foo <- data.frame(x=1:3, y=4:6) plot(foo$x, foo$y, type="n", axes=F) points(foo$x, foo$y) axis(side=1, at=foo$x, lty=0) #would like to figure
2007 May 15
2
converting a row of a data.frame to a vector
I've searched for the answer to this in the help list archive, but wasn't able to get the answer to work. I'm interested in converting a row of a data.frame into a vector. However, when I use as.vector(x,[1,]) I get another data.frame, instead of a vector. (On the other hand, when I use as.vector(x,[,1]), I get a vector.) Thanks, Andrew [[alternative HTML version deleted]]