constrained

  1. M

    Bayesian MCMC Fitting lognorm mixture model w/constraint on population mean

    I am trying to find a reference and/or guidance for fitting a mixture model to a population of data within an MCMC framwork where the global mean is constrained to a particular value, in this case 1. That is, E(X) = 1 where f(X) = \sum \omega_i f_i(x| \theta_i) and the standard constraint \sum...
  2. jpkelley

    Constrained linear regression in R

    Hi all, Using R, I'm running a linear regression for part of a function I'm writing to calculate survival rates from age distributions. My question for the purpose of this thread is following. Given the following sample data set: set.seed(100) fake.data <- data.frame(x=seq(1:20), y=rnorm(20...