Re: [R] Error in var(if (is.vector(x) || is.factor(x)) x else as.double(x), na.rm = na.rm)

2021-06-26 Thread Rolf Turner
On Fri, 25 Jun 2021 13:54:44 -0500 Tariq Khasiri wrote: > Just trying to replicate the Callaway and Sant'Anna average treatment > group effect for my research where I would like to see how a > particular law implementation is affecting all the treated states' > wages compared to the never trea

Re: [R] Error in var(if (is.vector(x) || is.factor(x)) x else as.double(x), na.rm = na.rm)

2021-06-26 Thread Duncan Murdoch
This is a duplicate of your SO post: https://stackoverflow.com/questions/68135737/error-in-varif-is-vectorx-is-factorx-x-else-as-doublex There you were asked for some data to make it reproducible. You shouldn't assume that people here are any more clairvoyant than the SO readers. Duncan Mur

[R] Error in var(if (is.vector(x) || is.factor(x)) x else as.double(x), na.rm = na.rm)

2021-06-25 Thread Tariq Khasiri
Just trying to replicate the Callaway and Sant'Anna average treatment group effect for my research where I would like to see how a particular law implementation is affecting all the treated states' wages compared to the never treated states' ( control group ) wage : ## Cleaning treated and never