# Find Initial Values of phi

### Description

`MomentsEst`

finds the initial values of phi which can be used in the subsequent optimization problems.
Linear model is fitted to the log odds of rankings.This function is only useful to the Weighted Kendall model.

### Usage

1 | ```
MomentsEst(dat, size, pi0 = NULL)
``` |

### Arguments

`dat` |
a RankData object |

`size` |
the number of samples to take in the linear model |

`pi0` |
an optional argument showing the location of central ranking. If not provided, Borda Count method is used to estimate the central ranking. |

### Value

estimated phi

### Examples

1 | ```
MomentsEst(apa_obj,40)
``` |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.