Learn R Programming

robustlmm (version 3.3-1)

psi2propII: Convert to Proposal 2 weight function

Description

Converts the psi_func object into a function that corresponds to Proposal 2, i.e., a function of the squared weights. The other elements of the psi_func object are adapted accordingly.

Usage

psi2propII(object, ..., adjust = FALSE)

# S4 method for psi_func_rcpp psi2propII(object, ..., adjust = FALSE)

Arguments

object

instance of Rcpp_PsiFunction class to convert

...

optional, new default arguments passed to chgDefaults.

adjust

logical, whether tuning parameters should be adjusted automatically, such that the scale estimate has the same asymptotic efficiency as the location estimate.

Examples

Run this code
par(mfrow=c(2,1))
plot(smoothPsi)
plot(psi2propII(smoothPsi))

Run the code above in your browser using DataLab