David,
tkanks für your comment, the code and the link.
You are right: arbitrary is a better word than exact pair matching.
I took the term one-to-one exact matching from the paper MatchIt:
Nonparametric Preprocessing for Parametric Causal Inference (p. 6):
Thank´s a lot, Patrick!
That´s what I was looking for...
Zitat von Patrick Connolly [EMAIL PROTECTED]:
On Wed, 16-Apr-2008 at 11:58AM +0200, Udo wrote:
| I only need line 1, 6 and 9. To show this,
| I added needed by hand.
|
|age school out1 out2 needed
| 11 10 9.5
On Wed, 16-Apr-2008 at 11:58AM +0200, Udo wrote:
| I only need line 1, 6 and 9. To show this,
| I added needed by hand.
|
|age school out1 out2 needed
| 11 10 9.5 1.1 yes
| 21 10 9.5 2.0 no
| 31 10 9.5 3.5 no
| 41 10
Udo [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
Daniel,
thank you!
I want to perfrom the simplest way of matching:
a one-to-one exact match (by age and school):
for every case in treat find ONE case (if there is one) in
control . The cases in control that could be matched, should
-
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Udo
Gesendet: Wednesday, April 16, 2008 5:59 AM
An: r-help@r-project.org
Betreff: Re: [R] Matched pairs with two data frames
Patrick,
my intention was, to perform
-project.org
Betreff: Re: [R] Matched pairs with two data frames
Patrick,
my intention was, to perform a one-to-one exact match, which pairs each
treated unit with ONE control unit (without replacement), using my two
confounders (age, school) for matching.
Patrick Connolly schrieb:
On Mon, 14-Apr-2008
Patrick,
my intention was, to perform a one-to-one exact match, which pairs each treated
unit with ONE control unit (without replacement), using my two confounders
(age, school) for matching.
Patrick Connolly schrieb:
On Mon, 14-Apr-2008 at 08:37AM +0200, Udo wrote:
| Zitat von Peter Alspach
with merge, I could not bring light to.
Udo
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Udo
Sent: Monday, 14 April 2008 6:41 a.m.
To: r-help@r-project.org
Subject: [R] Matched pairs with two data frames
Hi,
I have a frame treat and want
On Mon, 14-Apr-2008 at 08:37AM +0200, Udo wrote:
| Zitat von Peter Alspach [EMAIL PROTECTED]:
|
| Udo
|
| Seems you might want merge()
|
| HTH ...
|
| Peter Alspach
|
| Thank you Peter and Jorge,
|
| but as I had written in my last sentence,
| Merge doesn´t do the job, because it
Hi,
I have a frame treat and want to find matched pairs in the data frame
control. In the matched (combined) data frame there should be two
variables (0/1),indicating the source of the data (treat or control),
so that it is possibe to set a filter (extraxt/select data).
#Here are the dataframes
Udo
Seems you might want merge()
HTH ...
Peter Alspach
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Udo
Sent: Monday, 14 April 2008 6:41 a.m.
To: r-help@r-project.org
Subject: [R] Matched pairs with two data frames
Hi,
I have
Hi Udo,
Perhaps
merge(treat,control)
does what you need.
I hope this helps,
Jorge
On Sun, Apr 13, 2008 at 2:41 PM, Udo [EMAIL PROTECTED] wrote:
Hi,
I have a frame treat and want to find matched pairs in the data frame
control. In the matched (combined) data frame there should be two
12 matches
Mail list logo