est: Estimate list

View source: R/pv_rrepest_estimate_argument.R

estR Documentation

Estimate list

Description

Obtains a list with the arguments for the est() function used within the Rrepest() function.

Usage

est(statistic, target, regressor = NULL)

Arguments

statistic

(string vector) Statistics of interest that can include mean ("mean"), variance ("var"), standard deviation ("std"), quantile ("quant"), inter-quantile range ("iqr"), frequency count ("freq"), correlation ("corr"), linear regression ("lm"), covariance ("cov") and any other statistics that are not pre-programmed into Rrepest but take a data frame and weights as parameters ("gen")

target

(string vector) Variable(s) of interest of the estimation

regressor

(string vector) Independent variable(s) to be included in a linear regression

Value

List containing the arguments for the est() function used within Rrepest() function

Examples

est(c("mean","quant",.5,"corr"),c("pv1math","pv1read","pv1scie"))


Rrepest documentation built on April 4, 2025, 2:07 a.m.