Skip to content

Instantly share code, notes, and snippets.

@MJacobs1985
Created November 10, 2022 13:24
Show Gist options
  • Save MJacobs1985/83e79269c084d0e58228e08446d95ab6 to your computer and use it in GitHub Desktop.
Save MJacobs1985/83e79269c084d0e58228e08446d95ab6 to your computer and use it in GitHub Desktop.
histogram(~ SurvTimeWeek | is.na(Physical_Functioning), data = total)
histogram(~ Emotional_Functioning | is.na(Physical_Functioning), data = total)
histogram(~ SurvTimeWeek | timef*is.na(Interference), data = total,type = "density",
panel = function(x, ...) {
panel.histogram(x, ...)
panel.mathdensity(dmath = dnorm, col = "black",
args = list(mean=mean(x),sd=sd(x)))
} )
histogram(~ Severity | timef*is.na(Relief), data = total)
histogram(~ Severity | timef*is.na(Pain), data = total)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment