compared_inferred_to_reported_bedtimes: compare inferred to reported bedtimes

View source: R/estimate_bedtimes.R

compared_inferred_to_reported_bedtimesR Documentation

compare inferred to reported bedtimes

Description

compare inferred to reported bedtimes

Usage

compared_inferred_to_reported_bedtimes(
  reported_bedtimes,
  inferred_bedtimes,
  threshhold = 0.25
)

Arguments

reported_bedtimes

a data frame where each row contains a username and a reported bedtime

inferred_bedtimes

a data frame where each row contains a username and an inferred bedtime

threshhold

the minimum correlation between circadian fingerprint and best-matching ideal model, deault 0.25

Value

a data frame that includes reported_bedtimes and inferred_bedtimes for each user

Examples


my_bedtimes <- data.frame(author=c(1,2), nightbed=c(-1, 1))
inferred_bedtimes <- data.frame(author=c(1,2), inferred_bedtime=c(-1.5, 0.75), cor=c(0.5,0.5))
compared_inferred_to_reported_bedtimes(my_bedtimes, inferred_bedtimes)

WillMeyerson/BEDDiT documentation built on Feb. 2, 2023, 6:37 p.m.