identity_primary_therapist: Identity primary therapist

View source: R/identity_primary_therapist.r

identity_primary_therapistR Documentation

Identity primary therapist

Description

Identity primary therapist

Usage

identity_primary_therapist(
  data,
  percent.threshold = 0.5,
  primary.therapist.only = FALSE
)

Arguments

data

A data file.

percent.threshold

A numeric value ranging between .50 (50%) to 1 (%100) to indicate the percentage of appointments across the UniqueClientID, CcmhID, and Data_year required to classify a therapist as the primary therapist. For example, 0.75 would contend that atleast 75% of appointments should be conducted by a therapist to classify them as the primary therapist. Default is 0.50.

primary.therapist.only

A logical statement to indicate if only the primary therapist should be returned. Default is FALSE.


CCMH-PSU/CCMHr documentation built on Jan. 11, 2025, 4:36 p.m.