Learn R Programming

pim (version 2.0.2)

CreateScoreFun: Create a score function for use in a pim.

Description

This function creates a suitable score function for the fitting process of a probabilistic index model.

Usage

CreateScoreFun(Z, Y, link = c("probit", "logit", "identity"), W = NULL)

Arguments

Z

the model matrix of pseudo-observations

Y

a vector with the response of the pseudo-observations

link

a character vector indicating the link function to be used.

W

a vector with weights.

Value

a function used for estimating the coefficients by the estimator functions.

NOTE

This function is not exported.