Web-R 에서 PSMTable(matched) 로 매칭 전후 독립변수들 비교하는 table이 출력되었는데
다른 결과들에서는 제가 매칭한 변수들 19개 모두 잘 사용되었는데
아래와 같이 PSMTable 결과에서는 변수 4개만 출력됩니다.
모든 변수들의 결과가 포함된 table 을 얻을 수는 없는지요?
참고로 dataset 첨부해드리고
아래 변수명이 모두 포함된 명령문입니다.
matchit(Platelet_group~Sex+Age+Body_mass_index+peritonitis+bowel_obstruction+bowel_ischemia_or_infarction+gastric_perforation+bowel_perforation+gastrointestinal_ulcer+Hypertension+Diabetes_Mellitis+History_of_ischemic_heart_disease+COPD+Stroke+Previous_abdominal_surgery+ASA_classification+Preoperative_Hemoglobin+Preop_serum_Albumin+operation_time,data= Em_Abd_Surgery,caliper=0.2)
matched <-matchit(Platelet_group~Sex+Age+Body_mass_index+peritonitis+bowel_obstruction+bowel_ischemia_or_infarction+gastric_perforation+bowel_perforation+gastrointestinal_ulcer+Hypertension+Diabetes_Mellitis+History_of_ischemic_heart_disease+COPD+Stroke+Previous_abdominal_surgery+ASA_classification+Preoperative_Hemoglobin+Preop_serum_Albumin+operation_time,data= Em_Abd_Surgery,caliper=0.2);matched
그리고 PSMTable 은 MatchIt 외에 어떤 package가 필요한 것인지요?
감사합니다.
Comment 3
-
bullet57
2023.12.21 05:32
-
cardiomoon
2023.12.21 07:58
안녕하세요? PSMTable 명령어는 webrPSM 패키지를 설치하시면 됩니다.
install.packages("devtools")
devtools::install_github("cardiomoon/webrPSM")
PSM 패키지의 버그가 있었는데 버그가 개선된 패키지를 github을 통해서 설치하시면 원하시는 table을 얻으실 수 있고 정회원용 앱을 사용하시면 모든 변수가 포함된 표를 얻으실 수 있습니다.
-
bullet57
2023.12.21 11:09
그렇군요. 답변 감사드립니다~~
결과 출력 web page 를 보니
require(moonBook)
require(rrtable)
require(ggplot2)
require(webrSub)
require(ggthemes)
이렇게 되어 있어 모두 설치했는데 webrSub 는 package 가 없다고 나옵니다.
그리고 이 상태에서는 PSMTable 명령이 실행되지는 않네요
webrSub package 가 설치가 안되어서 안되는 것일까요? 감사합니다.