Relative Content

Tag Archive for rsurvival-analysiscausal-inference

‘Not a matrix’ error in ate() function in the ‘riskRegression’ package

I’m attempting to estimate the average treatment effect of a baseline treatment on a survival outcome by fitting a doubly robust estimator using the ate() function in the package riskRegression. Documentation states that the argument treatment must be either the name of the treatment variable or, for IPTW, a glm object from a logistic regression (treatment regressed on covariates). When I do the latter, I get the error: