[R] Kernel density / weights matrix?

2010-02-09 Thread Stephan Lindner
, 2001), pp. 599-631 -- ------- Stephan Lindner University of Michigan __ 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, min

[R] Computing the sum of cross products of rows of a matrix

2009-09-19 Thread Stephan Lindner
rossprod(x[i,]) } ## The result ## ## > cross ## [,1] [,2] [,3] ## [1,] 14 14 14 ## [2,] 14 14 14 ## [3,] 14 14 14 -- ------- Stephan Lindner University of Michigan __ R-help@r-project.org mailing list https

[R] System is computationally singular and scale of covariates

2009-08-15 Thread Stephan Lindner
in the size of the numbers? If that is the case, I think I would fare better scaling down the outer product rather than the variable itself, but I first wanted to ask the community to get and understanding of what could be the problem. Thanks a lot,

[R] Using by() and stacking back sub-data frames to one data frame

2009-06-24 Thread Stephan Lindner
12 2 --> What I would like to do is stacking these four data frames back to one data frame, which in this simple example would just be y. I tried unlist(), unclass() and rbind(), but none of them would work. Thanks a lot, Stephan -- ------- Step

[R] Selecting all rows of factors which have at least one positive value?

2009-04-02 Thread Stephan Lindner
ot! Stephan -- ----------- Stephan Lindner University of Michigan __ 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 provi

[R] Importing csv file with character values into sqlite3 and subsequent problem in R / RSQLite

2009-03-30 Thread Stephan Lindner
"001074034\"" --> Only the codes: <-- more example.csv echo -e "\"001074034\",90,1,7,89,12\n\"001074034\",90,1,1,90,12\n\"001074034\",90,1,2,90,12\n\"001074034\",90,1,3,90,12" > exa

[R] Converting ddf/dct/sas data definition file to R

2009-01-22 Thread Stephan Lindner
editor. The reason why I am looking for a program is because I have a bunch of datasets (about 100) and there are about 200 variables defined per dataset. My goal is to provide R-scripts for these datasets such that the data files can be read in with R, making them accessible for R users. Th

[R] Using apply to generate matrix from rows?

2009-01-19 Thread Stephan Lindner
unction(x)x%*%t(x) apply(u,1,function(y)sq(y)) -- ------- Stephan Lindner University of Michigan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-pr

[R] tapply and any

2008-11-19 Thread Stephan Lindner
LSE FALSE TRUE TRUE FALSE FALSE Thanks! Stephan -- ----------- Stephan Lindner University of Michigan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide ht