Re: [R] Can mice() handle crr()? Fine-Gray model, Object has no vcov() method.

2017-01-22 Thread David Winsemius
> On Jan 22, 2017, at 10:30 AM, Andreu Ferrero wrote: > > Here is an example: > Crossposting to stackoverflow and rhelp is deprecated. Read the Posting Guide. (And) Learn to ask the maintainer. — David. > > # example > > library(survival) > library(mice) >

[R] Can mice() handle crr()? Fine-Gray model, Object has no vcov() method.

2017-01-22 Thread Andreu Ferrero
Here is an example: # example library(survival) library(mice) library(cmprsk) test1 <- as.data.frame(list(time=c(4,3,1,1,2,2,3,5,2,4,5,1, 4,3,1,1,2,2,3,5,2,4,5,1), status=c(1,1,1,0,2,2,0,0,1,1,2,0, 1,1,1,0,2,2,0,0,1,1,2,0),

[R] Granger-causality test using vars package

2017-01-22 Thread T.Riedle
Dear R-users, I am trying to compute the test statistics for Granger-causality for a VAR(p) model using the "vars" package. I simply used the example proposed by the vars vignette and added the code for the Granger-causality. The code looks as follows library(vars) Canada<-Canada[,