Re: [R] R-3.4.0 fails test

2017-05-17 Thread Henric Winell
On 2017-05-17 09:42, Patrick Connolly wrote: After installing R-3.4.0 I ran 'make check' which halted here: $ > tail reg-tests-1d.Rout.fail -n 16 This problem was brought up on the R-devel list early this morning. See https://stat.ethz.ch/pipermail/r-devel/2017-May/074275.h

Re: [R] survival package can't find Ccoxfit6

2017-04-28 Thread Henric Winell
fter fixing the argument list, just use '.Call(survival:::Ccoxfit6, )' instead of '.Call("Ccoxfit6", , PACKAGE = "survival")'. Henric Winell Without seeing the code that led to the error message I can't really say how the error came about. There are a

Re: [R] “Error in if (abs(x - oldx) < ftol)” when using “lognormal” distribution in mixed logit

2015-07-24 Thread Henric Winell
our data? That warning message is typical for when you try to take logs of a negative number: > log(-1) [1] NaN Warning message: In log(-1) : NaNs produced Unless this helps you identify the problem, we need a (preferably small) reproducible example demonstrating the issue to be able to p

Re: [R] how to update a value in a list with lapply

2015-05-11 Thread Henric Winell
ged. This list itself and the second list element remain at the same addresses as before. Henric Winell The data.table package was invented in large part to get around that design concern. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Question about cochran test in R

2015-05-08 Thread Henric Winell
rejected. Unfortunately, I'm not aware of any publicly available software that let's you do this. In theory, 'coin' should be able to, and there has even been some work done in this direction, but it's currently unfinished. Henric Winell Sorry if I annoy you

Re: [R] Question about cochran test in R

2015-05-07 Thread Henric Winell
On 2015-05-07 09:15, Jim Lemon wrote: Hi Luis, Try this page: http://www.r-bloggers.com/cochran-q-test-for-k-related-samples-in-r/ Jim Cochran's Q test is a marginal homogeneity test, and such tests can be performed by the 'mh_test' function in the 'coin' package. The following replicates

Re: [R] Using and abusing %>% (was Re: Why can't I access this type?)

2015-03-27 Thread Henric Winell
On 2015-03-26 07:48, Patrick Connolly wrote: On Wed, 25-Mar-2015 at 03:14PM +0100, Henric Winell wrote: ... |> Well... Opinions may perhaps differ, but apart from '%>%' being |> butt-ugly it's also fairly slow: Beauty, it is said, is in the eye of the beholder.

Re: [R] Why can't I access this type?

2015-03-27 Thread Henric Winell
a.frame(state.x77, Name = rownames(state.x77)) Henric Winell then this would worka; cold.states <- all.states[all.states$Frost > 150, c("Name", "Frost")] Modify the above to match where my guess at what you tried is in error. HTH _

Re: [R] matrix manipulation question

2015-03-27 Thread Henric Winell
a vector of logicals 2. T (and F) can be redefined, so what if T <- FALSE? Henric Winell head(Z, n=8) Wind Temp Month Day [1,] 7.4 67 5 1 [2,] 8.0 72 5 2 [3,] 12.6 74 5 3 [4,] 11.5 62 5 4 [5,] 14.3 56 5 5 [6,] 14.9 66 5 6 [7,] 8.6 65 5

Re: [R] Why can't I access this type?

2015-03-25 Thread Henric Winell
9 1000 a 1010.076 1033.519 1133.1469 1107.8480 1175.1800 2932.206 1000 c Of course, this doesn't matter for interactive one-off use. But lately I've seen examples of the '%>%' operator creeping into functions in packages. However, it would be nice to see a fast pipe o

Re: [R] cluster + tt terms in coxph

2014-11-06 Thread Henric Winell
d code publicly available somewhere? (The 'survival' repository at R-forge doesn't seem to have been updated since January.) Henric Winell Terry Therneau On 11/05/2014 05:00 AM, r-help-requ...@r-project.org wrote: I am receiving the following error when trying to include both tt

Re: [R] partykit ctree: minbucket and case weights

2014-05-30 Thread Henric Winell
Amber Dawn Nolder wrote 2014-05-28 23:16: Hello, I am an R novice, and I am using the "partykit" package to create regression trees. I used the following to generate the trees: ctree(y~x1+x2+x3+x4,data=my_data,control=ctree_control(testtype = "Bonferroni", mincriterion = 0.90

Re: [R] dev-lang/R-3.1.0: biocLite("vsn") removes all files in /

2014-05-19 Thread Henric Winell
ve always succeeded installing BioC packages using the standard R tools (as indicated by Uwe in his reply). Henric Winell 2) Running random scripts straight from the internet as root without reviewing them is exactly the kind of thing any experienced *nix user would never do. That is why use

Re: [R] Permutation tests in {coin}

2013-10-10 Thread Henric Winell
Lars Bishop skrev 2013-10-05 22:17: Hello, I'm trying to get familiar with the coin package for doing permutation tests. I'm not sure I understand the documentation regarding the difference between distribution = "asymptotic" and "approximate" in the function independence_test. The use of "asy

Re: [R] installing package 'rqpd' (Regression quantiles for panel data)

2013-06-04 Thread Henric Winell
Manish, Manish K. Srivastava skrev 2013-06-03 16:19: Hello R community members, I'm trying to install the 'rqpd' package which is developed by Roger Koenker and Stefan Bache. When I try to install the package using the command 'install.packages("rqpd",repos="http://R-Forge.R-project.org";)' I'm

Re: [R] wilcox_test function in coin package

2013-06-03 Thread Henric Winell
7;coin' use algorithms that compute the exact p-value for any ties configuration. Take a look at Torsten Hothorn's "On Exact Rank Tests in R" article from the very first issue of R News http://www.r-project.org/doc/Rnews/Rnews_2001-1.pdf. Henric Janh On Sat,

Re: [R] wilcox_test function in coin package

2013-06-01 Thread Henric Winell
Janh, Janh Anni skrev 2013-06-01 04:27: Hello peter, Thanks for the comment. wilcox.exact is simpler as you pointed out but the fact that it is no longer being developed is somewhat concerning. Admittedly, 'coin' is being actively developed and has a lot more bells and whistles. But for so

Re: [R] order panels in xyplot by increasing slope

2013-06-01 Thread Henric Winell
Ethan, Jim Lemon skrev 2013-05-24 00:09: On 05/24/2013 06:21 AM, Belair, Ethan D wrote: example.plot = xyplot(ht ~ time|tree, data=data, type = c("r", "g", "p"), par.settings=simpleTheme(col="blue"), main="abc", ) example.plot > ..

Re: [R] how to collapse categories or re-categorize variables?

2010-07-19 Thread Henric Winell
On 2010-07-17 23:03, Peter Dalgaard wrote: Ista Zahn wrote: Hi, On Fri, Jul 16, 2010 at 5:18 PM, CC wrote: I am sure this is a very basic question: I have 600,000 categorical variables in a data.frame - each of which is classified as "0", "1", or "2" What I would like to do is collapse "1" a