[R-sig-ME] Need help with MCMCglmm
Jarrod Hadfield
j.hadfield at ed.ac.uk
Thu Feb 6 16:53:03 CET 2014
Hi Sumayia,
I'm not sure why you are getting this error. Has the problem been
resolved? If not and you can send me the data I will take a look at it.
Cheers,
Jarrod
Quoting Sumayia Bashir <sumayia.bashir at stir.ac.uk> on Sat, 11 Jan 2014
22:56:53 +0000:
> Hi,
>
> I am trying to run a MCMCglmm model using multinomial family but
> getting an error message.
>
> My prior is:
>
> prior1<-list(
> G=list((G1=list(V=0.01, nu = 0.1)),
> (G2=list(V=diag(2)* 0.01, nu = 0.1))),
> R=list(V= diag(2)*0.01,nu=0.1))
> prior1
>
> my model is following:
>
> m1<-MCMCglmm(cbind(M18, A18) ~ sex + treatment + group,
> random = ~ batch + idh(group):mitotype,
> rcov = ~ idh(group):units,
> family = "multinomial2",
> prior = prior1,
> verbose = FALSE,
> nitt=150000,thin=100,burnin=50000,
> data = SBR)
>
> when I try to run the above model I get the following error message
>
> Error in if (nJ < 1) { : missing value where TRUE/FALSE needed
>
> Can any one please help me to understand what is wrong with my model setting?
>
> Many Thanks
>
> Sumayia
>
> --
> The University of Stirling has been ranked in the top 12 of UK
> universities for graduate employment*.
> 94% of our 2012 graduates were in work and/or further study within
> six months of graduation.
> *The Telegraph
> The University of Stirling is a charity registered in Scotland,
> number SC 011159.
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
More information about the R-sig-mixed-models
mailing list