handle_weights: Sanitizes potential sample weights

View source: R/internal.plasso.R

handle_weightsR Documentation

Sanitizes potential sample weights

Description

handle_weights cleans potential sample weights or codes them as ones if they are not specified.

Usage

handle_weights(w, n)

Arguments

w

Vector or n x 1 matrix of weights or null if no weights provided

n

Number of observations

Value

Vector of weights.


plasso documentation built on May 29, 2024, 6:46 a.m.