Learn R Programming

LCA (version 0.1.1)

getPTLparams: Find best values of PTL parameters

Description

Finds parameters alpha, beta and gamma in PTL model to fit an observed distribution of differences in each feature's values between two given objects from a dataset.

Usage

getPTLparams(x1,x2)

Arguments

x1

Numeric data input vector, standardised to range (0,1)

x2

Numeric data input vector, standardised to range (0,1)

Value

List with the following elements:

d

Numeric value specifying pair-wise global distance between objects x1 and x2

beta

Numeric value specifying value of parameter beta in best PTL fit

alpha

Numeric value specifying value of parameter alpha in best PTL fit

gamma

Numeric value specifying value of parameter gamma in best PTL fit

Details

Uses iterative NLS fitting to determine parameters of PTL model to represent the distribution of the differences observed between two objects selected from the dataset being analysed with LCA.