remove_if_all_missing: Remove subjects from dataset if they have no observed values

View source: R/mcmc.R

remove_if_all_missingR Documentation

Remove subjects from dataset if they have no observed values

Description

This function takes a data.frame with variables visit, outcome & subjid. It then removes all rows for a given subjid if they don't have any non-missing values for outcome.

Usage

remove_if_all_missing(dat)

Arguments

dat

a data.frame


rbmi documentation built on Nov. 24, 2023, 5:11 p.m.