# SAS/SPSS Mixed Model cov type translation to Julia (MixedModels.jl)

**URL:** https://discourse.julialang.org/t/sas-spss-mixed-model-cov-type-translation-to-julia-mixedmodels-jl/22258
**Category:** Statistics
**Tags:** question, documentation
**Created:** [March 23, 2019, 11:01pm UTC](https://discourse.julialang.org/t/sas-spss-mixed-model-cov-type-translation-to-julia-mixedmodels-jl/22258 "2019-03-23T23:01:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![PharmCat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pharmcat/32/6953_2.png) [@PharmCat](https://discourse.julialang.org/u/PharmCat)
#### Post date: [March 23, 2019, 11:01pm UTC](https://discourse.julialang.org/t/sas-spss-mixed-model-cov-type-translation-to-julia-mixedmodels-jl/22258/1 "2019-03-23T23:01:11Z")

</div>

I try to use **[MixedModels.jl](https://github.com/dmbates/MixedModels.jl)**.

Is any documentation how to translate SAS/SPSS random/repeated covariance type to julia MixedModels.jl notation?

for example:

```julia
RANDOM Fact1/TYPE=FA0(2) SUB=Fact2 G;
REPEATED/GRP=Fact1 SUB=Fact2;

```

where Fact1 and Fact2 - factors.

How to fit:

- CSH (Heterogenous compound symmetry)
- UN (Unstructured)
- VC (Variance components)
- AR1 (First-order autoregressive)

How to explain the relationship between these types and Julia MixedModels.jl notation to SAS users?

---

<div class="post-metadata">

### Author: ![dave.f.kleinschmidt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dave.f.kleinschmidt/32/55_2.png) [@dave.f.kleinschmidt](https://discourse.julialang.org/u/dave.f.kleinschmidt)
#### Post date: [March 28, 2019, 4:42pm UTC](https://discourse.julialang.org/t/sas-spss-mixed-model-cov-type-translation-to-julia-mixedmodels-jl/22258/2 "2019-03-28T16:42:06Z")

</div>

The model formula syntax that MixedModels.jl uses is largely (but not exactly) the same as the what the R package lme4 uses, so that might help you find some translation resources.
