powered by
Drop empty families
drop_empty_families(data_events)
A data.frame. It must be compatible with nodes in model. The default columns are event, strategy and count.
data.frame
model
event
strategy
count
Returns data events with strategies (excluding strategy families that contain no observed data)
# NOT RUN { data_events <- data.frame(event = c('X0Y0', 'Y0'), strategy = c('XY', 'Y'), count = 1:0) CausalQueries:::drop_empty_families(data_events) # } # NOT RUN { # }
Run the code above in your browser using DataLab