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

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

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.

0 Kudos
1 Reply
Leonardo
Level 3
Author

Dear Dataiku, this rather urgent, could you send any updates when you have a moment about my question above? Many thanks.

0 Kudos