WSrg2: Weighted sums by rotation groups

Description Usage Arguments Value Examples

View source: R/WSrg.R

Description

Weighted sums by rotation groups

Usage

1
WSrg2(list.tables, weight, y, rg = "hrmis", rescale = F, dimname1 = "m")

Arguments

list.tables

a named list of data frames

weight

a character string indicating the variable name or a numerical value

y

a character strings indicating one study variable

rg

a character string indicating the name of the rotation group.

Value

an array

Examples

1
2
3
4
5
6
library(dataCPS)
period<-200501:200512
list.tables<-lapply(data(list=paste0("cps",period),package="dataCPS"),get);
names(list.tables)<-period
Y<-WSrg2(list.tables,"pwsswgt",list.y=c("pemlr","pwsswgt"),rg="hrmis")
Y<-WSrg2(list.tables,"pwsswgt",list.y=c("pemlr"),rg="hrmis")

DanielBonnery/CompositeRegressionEstimation documentation built on June 17, 2020, 12:16 p.m.