Learn R Programming

vdra (version 1.0.0)

HoslemTest: Hosmer-Lemeshow Test for Vertical Distributed Logistic Regression

Description

Run the Hosmer-Lemeshow test for an object created by 2-party, 3-party, or K-party vdra logistic regression. Only the party that holds the response may invoke this function.

Usage

HoslemTest(x, nGroups = 10)

Arguments

x

an object of type vdralogistic.

nGroups

the number of groups that the data will be sperated into.

Value

Returns an object of class hoslemdistributed. Objects of this class have a method for the function print. The following component must be included in a hoslemdistributed object.

hoslem

a vector containing three numeric quantities: the chi-square value of the test, the degrees of freedom of the test, and p-value of the test, in that order.

Examples

Run this code
# NOT RUN {
  HoslemTest(vdra_fit_logistic_A)

  HoslemTest(vdra_fit_logistic_A, 20)
# }

Run the code above in your browser using DataLab