[R] R does not start from (Debian) linux command line - error with doWithOneRestart() - segmentation fault

2021-04-06 Thread Ashim Kapoor
Dear R experts, Here is my problem : R startup FAILS with an error message. The error message is more meaningful when I do invoke R via sudo OR as root. I attach the startup messages when I invoke R as : 1. as non root user 2. with sudo 3. as Root user. The error messages ( mentioned in snippet

Re: [R] Contrasts in coxph

2021-04-06 Thread David Winsemius
On 4/5/21 8:28 PM, Sorkin, John wrote: I would like to define contrasts on the output of a coxph function. It appears that the contrast function from the contrast library does not have a method defined that will allow computation of contrasts on a coxph object. How does one define and evalua

Re: [R] Contrasts in coxph

2021-04-06 Thread John Fox
Dear John, It's not clear to me exactly what you have in mind, but car::linearHypothesis(), multcomp::glht(), and the emmeans package work with Cox models. I expect there are functions in other packages that will work too. Here's an example, surely simpler than what you have in mind, but you

Re: [R] Contrasts in coxph

2021-04-06 Thread Göran Broström
Dear John, I googled "contrasts Cox regression" and found https://stats.stackexchange.com/questions/15603/performing-contrasts-among-treatment-levels-in-survival-analysis where Frank Harrell reports how to do what you want with his rms package. At least I think so, haven't tried it myself. B

Re: [R] Probit model- endogeneity issue

2021-04-06 Thread John C Frain
On Wed 24 Mar 2021 at 07:54, hannelore nelissen < hannelore.nelis...@outlook.be> wrote: > Dear all, > I am having some issues with using the IV strategy for an endogeneity > problem in terms of a probit model. In particular, I want to follow a > two-stage procedure where I estimate a probit on th