Will do.
Kosuke Imai
Professor, Department of Politics
Center for Statistics and Machine Learning
Princeton University
http://imai.princeton.edu
On Thu, Jun 22, 2017 at 6:08 PM, kgmacau <kgmacau(a)163.com> wrote:
>
> Dear Prof. Imai,
>
> Many thanks. The number of running sum(is.na(real_data)) is positive,
> which indicates a variable has missing values. However, I do not use this
> variable in matchit function but it actually has influence on this
> function. Is it possible to solve this limitation in your future update of
> this package.
>
> Thanks & Regards,
> Ning
>
>
>
>
> At 2017-06-22 13:49:33, "Kosuke Imai" <kimai(a)princeton.edu> wrote:
>
> Hi Ning,
>
> Please send your inquirty to the matchit mailing list, to which I'm
> forwarding your email. As for your question, can you try sum(is.na(real_data))?
> If you get a positive number, it does mean that you have missing data.
> "subclass" tells you which subclass each observation belongs to (after
> full matching).
>
> Good luck,
> Kosuke
>
> Kosuke Imai
> Professor, Department of Politics
> Center for Statistics and Machine Learning
> Princeton University
> http://imai.princeton.edu
>
> On Wed, Jun 21, 2017 at 1:17 AM, kgmacau <kgmacau(a)163.com> wrote:
>
>> Dear Prof. Ho and Imai,
>>
>> I am implementing the propensity scores matching method for my research
>> and came across below error when running the matchit function:
>>
>> library(MatchIt)
>> result <- matchit(group~sex+age+primary_disease
>> +kps+rpa+gpa+primary_control
>> +extracranial_metastasis
>> +extracranial_metastasis_control
>> +primary_treatment
>> +past_treatment
>> +N_brain_metastases,
>> data=real_data,
>> method = "full")
>>
>> Error in matchit(group ~ sex + age + primary_disease + kps + rpa + gpa +
>> :
>> Missing values exist in the data
>>
>> I checked my data and there is no missing value in my data and searched
>> the same error online but did not find any solution. So I do not know why
>> there occurred this error. I highly appreciate it if you can tell me how to
>> solve this error.
>>
>> Besides, we can present the matched results in data via
>> match.data(result), in which the argument "subclass" specifies the
>> variable name used to store the subclass indicator. Does this argument
>> indicate the matched information for subjects? If not, what argument in
>> what function can present the matched subject lists? Thank you very much
>> and look forward to your reply.
>>
>> Thanks & Regards,
>>
>> Ning Li
>> Programmer analyst
>> PPD Biostatistics Department, Beijing, China
>> Email: ning.li(a)ppdi.com
>> Tel: 86 17701386979
>>
>>
>>
>>
>>
>>
>
>
>
>
>
Hi Ning,
Please send your inquirty to the matchit mailing list, to which I'm
forwarding your email. As for your question, can you try
sum(is.na(real_data))?
If you get a positive number, it does mean that you have missing data.
"subclass" tells you which subclass each observation belongs to (after
full matching).
Good luck,
Kosuke
Kosuke Imai
Professor, Department of Politics
Center for Statistics and Machine Learning
Princeton University
http://imai.princeton.edu
On Wed, Jun 21, 2017 at 1:17 AM, kgmacau <kgmacau(a)163.com> wrote:
> Dear Prof. Ho and Imai,
>
> I am implementing the propensity scores matching method for my research
> and came across below error when running the matchit function:
>
> library(MatchIt)
> result <- matchit(group~sex+age+primary_disease
> +kps+rpa+gpa+primary_control
> +extracranial_metastasis
> +extracranial_metastasis_control
> +primary_treatment
> +past_treatment
> +N_brain_metastases,
> data=real_data,
> method = "full")
>
> Error in matchit(group ~ sex + age + primary_disease + kps + rpa + gpa +
> :
> Missing values exist in the data
>
> I checked my data and there is no missing value in my data and searched
> the same error online but did not find any solution. So I do not know why
> there occurred this error. I highly appreciate it if you can tell me how to
> solve this error.
>
> Besides, we can present the matched results in data via
> match.data(result), in which the argument "subclass" specifies the
> variable name used to store the subclass indicator. Does this argument
> indicate the matched information for subjects? If not, what argument in
> what function can present the matched subject lists? Thank you very much
> and look forward to your reply.
>
> Thanks & Regards,
>
> Ning Li
> Programmer analyst
> PPD Biostatistics Department, Beijing, China
> Email: ning.li(a)ppdi.com
> Tel: 86 17701386979
>
>
>
>
>
>