How to produce summary of results from R coding in Dataiku?

Leonardo
Leonardo Registered Posts: 14 ✭✭✭✭

Hello,

I perform propensity score matching and try to produce a summary of results. How can I see these results inside Dataiku? In other words, can I request to produce a dashboard from my "summary(match.itzs)" code line?

Here is my code:

library(dataiku)
library(MatchIt)
library(dplyr)
library(optmatch)

# Recipe inputs
cohort_initial <- dkuReadDataset("prp_for_psm_pq")

set.seed(1234)

match.itzs <- matchit(cohort_flag ~ pat_age + pat_gender + pt_hist_in_months + pt_visit_count + pat_race + pat_ethnicity, data = cohort_initial, ratio=1)

summary(match.itzs)

df.matchzs <- match.data(match.itzs)[1:ncol(cohort_initial)]psm_Cohort1_exploration <- df.matchzs

# Recipe outputs
dkuWriteDataset(psm_Cohort1_exploration,"psm_Cohort1_exploration")

Thank you.

Tagged:

Answers

Setup Info
    Tags
      Help me…