hyp <- paste(
"sd_phylo__Intercept^2 /",
"(sd_phylo__Intercept^2 + sd_species__Intercept^2 + sigma^2) = 0"
)
(hyp <- hypothesis(model_repeat1, hyp, class = NULL))
but my response variable is a 0 1 outcome, not a continuous variable, thus there is no sigma^2 term. In order to estimate lambda, then, should I add another term (1|obs)? Or is something else necessary? Example model below:
model.full1 <- brm(response ~
spec_mean_bioclim_PC1 + spec_mean_bioclim_PC2 +
within_spec_bioclim_PC1 + within_spec_bioclim_PC2 +
(1|phylo) + (1|species) + (1|obs),
family = bernoulli(),
cov_ranef = list(animal = A),
sample_prior = TRUE,
data = mcmc_data,
thin = 10, warmup = 1000, iter = 2000)
Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "brms-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brms-users+unsubscribe@googlegroups.com.
To post to this group, send email to brms-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brms-users/e0012303-70bd-4fc2-bcef-2e2af4656887%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I believe, I have answered this question before somewhere on brms-users. Would you mind taking a look of whether you can find it? If not, I will try to find it myself.
2018-04-06 18:33 GMT+02:00 Nora Mitchell <nora.c....@gmail.com>:
Hi all,I'm following the "Estimating Phylogenetic Multilevel Models with brms" vignette (https://cran.r-project.org/web/packages/brms/vignettes/brms_phylogenetics.html), specifically the phylogenetic model with repeated measures. I'm interested in estimating the phylogenetic signal using hypothesis testing as below:hyp <- paste( "sd_phylo__Intercept^2 /", "(sd_phylo__Intercept^2 + sd_species__Intercept^2 + sigma^2) = 0" ) (hyp <- hypothesis(model_repeat1, hyp, class = NULL))
but my response variable is a 0 1 outcome, not a continuous variable, thus there is no sigma^2 term. In order to estimate lambda, then, should I add another term (1|obs)? Or is something else necessary? Example model below:
model.full1 <- brm(response ~ spec_mean_bioclim_PC1 + spec_mean_bioclim_PC2 + within_spec_bioclim_PC1 + within_spec_bioclim_PC2 + (1|phylo) + (1|species) + (1|obs), family = bernoulli(), cov_ranef = list(animal = A), sample_prior = TRUE, data = mcmc_data, thin = 10, warmup = 1000, iter = 2000)
Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "brms-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brms-users+...@googlegroups.com.