If it doesn't solve your problem, can you please provide a REPRoducible EXample of your problem? It provides more specifics of your problem, and it helps others to understand what problem you are facing.
In case you don't know how to make a reprex, here's a great link:
Hi! Wow that helped a lot, thank you! The only thing is that while the g12 successfully created a subset- the second line spits out an error message that says:
Error in model.frame.default(formula = ( grp ~ surviva), data = s12, :
variable lengths differ (found for 'surviva')
But my number of observations for each variable is the same? (I think that's what they're saying right?)
NO WAIT DON'T WORRY I SOLVED IT (since my surviva object was a ratio using my original dataset I had to alter it to use the subset data instead!) THANKS AGAIN, SO MUCH