expected: Expected PROM

View source: R/expected.R

expectedR Documentation

Expected PROM

Description

Expected PROM using linear model. Used to create expected data frame which is used in prom_trends.

Usage

expected(
  outcome,
  data1,
  data2,
  data3,
  data4,
  year_period1 = "2008_2009",
  year_period2 = "2010_2011",
  year_period3 = "2012_2013",
  year_period4 = "2014_2015",
  mean_group = "Unit"
)

Arguments

outcome

Linear model outcome variable.

data1, data2, data3, data4

Data frames containing data for period 1/2/3/4

year_period1, year_period2, year_period3, year_period4

Period 1/2/3/4.

mean_group

Group to take mean on.

Details

The following variables MUST be included in the data sets function:

"PREP_HipPain", "PREP_VASHealth", "eq5d0swe", "eq10", "eq20", "eq30", "eq40", "eq50", "P_DiaGrp", "P_Gender", "P_Age", "PREP_Charnley"

where "eq10", "eq20", "eq30", "eq40" and "eq50" are the five numbers extracted using eq5d_3l and "eq5d0swe" is obtained using "eq10", "eq20", "eq30", "eq40", and "eq50" in eqindSwed.

Value

Data frame containing expected PROM for four year periods.


swehip/shprplotfun documentation built on Oct. 21, 2022, 8:26 a.m.