Learn R Programming

Rrepest (version 1.5.4)

est: Estimate list

Description

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

Usage

est(statistic, target, regressor = NULL)

Value

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

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

Examples

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

Run the code above in your browser using DataLab