{
    "name": "Rates.free",
    "synonyms": ["DP"],
    "result_type": "MixtureModel[a]",
    "call": "SModel.free_rates[submodel,rates,frequencies]",
    "args": [
        {
            "arg_name": "rates",
            "arg_type": "List[Double]",
            "default_value": "~dirichlet[@n,2]",
	    "description" : "Rates for each category"
        },
        {
            "arg_name": "frequencies",
            "arg_type": "List[Double]",
            "default_value": "~dirichlet[@n,3]",
	    "description" : "Frequencies for each category"
        },
        {
            "arg_name": "n",
            "arg_type": "Int",
            "default_value": "4",
	    "description": "Number of categories, if not specified"
        },
        {
            "arg_name": "submodel",
            "arg_type": "MixtureModel[a]",
	    "description": "The model to be scaled"
        }
    ],
    "title": "Free rates model",
    "description":"Rate heterogeneity model where the rate and frequency of each category can be estimated from the data.",
    "examples": ["hky85+Rates.free[n=3]"],
    "citation":{"type": "article",
		"title": "A space-time process model for the evolution of DNA sequences.",
		"year": "1995",
		"author": [{"name": "Yang, Ziheng"}],
		"journal": {"name": "Genetics", "volume": "139", "number": "2", "pages": "993--1005"},
		"identifier": [{"type":"pmid","id":"7713447"},
			       {"type":"pmcid","id":"PMC1206396"}]
	       }
}
