search for: rankscore

Displaying 2 results from an estimated 2 matches for "rankscore".

2011 Apr 29
1
Conditonal Rank
Suppose I have data such as tmp <- data.frame(score = c(1,2,3,4, 4,3,2,1), trial = gl(2,4), Gender = gl(2,2,8, labels=c('M', 'F'))) Now I would like to compute a rank on the variable score conditional on trial and gender. I could do res <- with(tmp, tapply(score, list(Gender, trial), rank)) res[,1] res[,2] and then finagle a way to create a new variable in the dataframe
2012 Jul 28
4
quantreg Wald-Test
Dear all, I know that my question is somewhat special but I tried several times to solve the problems on my own but I am unfortunately not able to compute the following test statistic using the quantreg package. Well, here we go, I appreciate every little comment or help as I really do not know how to tell R what I want it to do^^ My situation is as follows: I have a data set containing a