Clinical trial Randomization

Hi, I need help plz
I'm trying to find a solution to the following problem :

  • I have a data set with 144 patients: containing two groups :
  • group 1 (70 patients) treated with a medical device and,
  • group 2 (42 patients) treated without a medical device.
    I would like to choose randomly from group 1: 42 patients that have the same characteristics as in group 2, in terms of: tumor size, sex, age, and tumor type.
    Could you help me, please?
    thank you

You obviously never want to share on an internet forum people's private medical data, but do you have a dummy bit of code for folks to work with? Ideally in the form of a reproducible example (FAQ: What's a reproducible example (`reprex`) and how do I do one?).

Also, do you have a specific method you're looking to implement in R? e.g. propensity score matching or something? Depending on what you're trying to do, there's likely an R package designed to help.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.