douuble: Compute weighted sums

Description Usage Arguments Value Examples

View source: R/double.R

Description

Compute weighted sums

Usage

1
douuble(list.tables, w, id, y)

Arguments

list.tables

A list of dataframes, order matters.

w

either a real number of a character string indicating the name of the weight variable.

id

primary key of the tables, used to merge tables together.

y

a string indicating the name of a factor variable common to all tables of list.tables.

Value

a list of three arrays.

Examples

1
douuble(list.tables=lapply(1:10,function(x){cbind(id=1:nrow(Orange),Orange)[sample(nrow(Orange),30),]}),w="circumference",id="id",y="Tree")

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