weights_pAMCE: Computing weights for estimating the population AMCE using a...

View source: R/weights_pAMCE.R

weights_pAMCER Documentation

Computing weights for estimating the population AMCE using a design-based approach

Description

Computing weights for estimating the population AMCE using a design-based approach

Usage

weights_pAMCE(
  formula,
  factor_name,
  data,
  pair,
  pair_id,
  cross_int,
  target_dist,
  target_type,
  partial_joint_name
)

Arguments

formula

Formula

factor_name

A factor for which the function computes weights

data

Data

pair

Whether we use a paired-choice conjoint design

pair_id

Unique identifiers for pairs in the paired-choice conjoint design (optional)

cross_int

Include interactions across profiles. Default is FALSE

target_dist

Target profile distributions to be used. This argument should be 'list'

target_type

Types of target profile distributions. 'marginal', 'partial_joint' or 'target_data'. See Examples for details

partial_joint_name

Names of factors representing partial joint distributions. See Examples for details.


naoki-egami/factorEx documentation built on Oct. 8, 2022, 5:41 a.m.