Description Usage Arguments Details Value Author(s) Source See Also Examples

The function `mc_dist`

helps to build the components
of the matrix linear predictor using matrices based on distances.
This function is generaly used for the analysis of longitudinal and
spatial data. The idea is to use the inverse of some measure of distance
as for example the Euclidean distance to model the covariance structure
within response variables. The model can also use the inverse of
distance squared or high order power.

1 |

`id` |
name of the column (string) containing the subject index.
For spatial data use the same |

`time` |
name of the column (string) containing the index indicating the time. For spatial data use the same index for all observations. |

`data` |
data set. |

`method` |
distance measure to be used. |

The distance measure must be one of `"euclidean"`

,
`"maximum"`

, `"manhattan"`

, `"canberra"`

,
`"binary"`

or `"minkowski"`

. This function is a customize
call of the `dist`

function.

A matrix of dgCMatrix class.

Wagner Hugo Bonat, wbonat@ufpr.br

Bonat, W. H. (2016). Multiple Response Variables Regression Models in R: The mcglm Package. Journal of Statistical Software, submitted.

`dist`

, `mc_id`

,
`mc_conditional_test`

, `mc_car`

, `mc_ma`

,
`mc_rw`

and `mc_mixed`

.

1 2 3 4 5 |

mcglm documentation built on May 19, 2017, 7:30 a.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.