Getting xtfrm.data.frame(x) error when using for loops

Hi @ricktikra , could you provide a sample of your dataset so we can try your code out? There are instructions on how to use the datapasta package to do this here.

Best,
Ian