Heterogeneous variances and weighting Facundo Muñoz 2017-04-14 breedR version: 0.12.1

Contents Using weights

1

Estimating residual variance heterogeneity

3

By default, the Linear Mixed Models fitted with breedR assume homoscedasticity. Meaning that given all the fixed and random effects, the unexplained variation follow a Normal distribution with residual variance σ 2 . Mathematically, that ε ∼ N (0, Iσ 2 ) in the model equation y = Xβ + Zu + ε Sometimes this is obviously wrong, and we need models where some observations are observed with more or less residual variability than others Here are a few common situations where heterogeneous variances are needed: • The observations are actually derived or calculated from real measurements, such as an average. Thus, the variance depends on the number of averaged measurements (e.g. Daughter Yield Deviation measures). • The observations are spread in time, and you want to model the residual variance as a function of time (e.g. longitudinal models).

Using weights If the relative variation in the residual variances is know or can be estimated, it can be specified as a vector of weights w, such that ε ∼ N (0, (w−1/2 )′ Iw−1/2 σ 2 ). In other words, the residual variance for the observation i is σ 2 /wi . Here is a simulation example of how to specify weights. set.seed(123) n <- 1e3 # n obs sigma2 <- 4 # true residual variance (for a weight of 1) w = runif(n, min = .5, max = 2) # vector of weights dat
1

res <- remlf90( y ~ 1, data = dat, weights = w # specification of weights ) ## Using default initial variances given by default_initial_variance() ## See ?breedR.getOption. Note that the estimated residual variance is close to the true value. On the other hand, the residual prediction-error are expected to have non-constant variance. summary(res) ## ## ## ## ## ## ## ## ## ## ## ## ##

Formula: y ~ 0 + Intercept Data: dat AIC BIC logLik 4080 4085 -2039

Variance components: Estimated variances S.E. Residual 4.012 0.1618 Fixed effects: value s.e. Intercept 10.016 0.0567

ggplot(transform(dat, est_e = residuals(res)), aes(e, est_e)) + geom_point() + geom_abline(intercept = 0, slope = 1, color = "darkgray")

2

est_e

4

0

−4

−4

0

4

e

Estimating residual variance heterogeneity This is currently not available in breedR. Different group-wise residual variances (e.g. multi-site) can be easily induced by using group-specific random effects. For the general case, here are some notes to allow for some manual hacking if needed. In general, we need to estimate a residual variance parameter as a function of some other variable x. We then write the residual variance as a linear combination of a few base functions: σ 2 (x) =

K X

ψk (x) rk = Ψr,

k=0

where the parameters rk are to be estimated. This covers the case both for group-wise residual variances (such as multi-site, using a categorical variable x) or a continuously varying residual variance. For the first case, the variable x is categorical, taking a finite number of values K, and we define ψk as the corresponding indicator functions. For the continuous case, the variable x is continuous (e.g. age, temperature) and the base functions can be Legendre polynomials, splines, etc. up to some arbitrary order K. We need to manually build the matrix Ψ, and exploit the PROGSF90 options hetres_pos and hetres_pol available in AI-REML (see documentation).

3

Heterogeneous variances and weighting - GitHub

Page 1. Heterogeneous variances and weighting. Facundo Muñoz. 2017-04-14 breedR version: 0.12.1. Contents. Using weights. 1. Estimating residual ...

122KB Sizes 14 Downloads 369 Views

Recommend Documents

Heterogeneous Parallel Programming - GitHub
The course covers data parallel execution models, memory ... PLEASE NOTE: THE ONLINE COURSERA OFFERING OF THIS CLASS DOES NOT ... DOES NOT CONFER AN ILLINOIS DEGREE; AND IT DOES NOT VERIFY THE IDENTITY OF ...

Heterogeneous Agent Macroeconomics: An Example and an ... - GitHub
Keynesian multipliers should be big in liquidity trap. Crude Keynesianism: .... Calibrate income process to match macro and micro data. 2. Calibrate other ...

OpenCUDA+MPI - A Framework for Heterogeneous GP ... - GitHub
CUDA. Compute Unified Device Architecture. Established interface with (nVidia) GPU's. pyCUDA. Deferred CUDA kernel compilation. Familiarity. Ballou. OpenCUDA+MPI ...

OpenCUDA+MPI - A Framework for Heterogeneous GP-GPU ... - GitHub
Kenny Ballou, Boise State University Department of Computer Science ... computing limit scientists and researchers in various ways. The goal of.

Importance Weighting Without Importance Weights: An Efficient ...
best known regret bounds for FPL in online combinatorial optimization with full feedback, closing the perceived performance gap between FPL and exponential weights in this setting. ... Importance weighting is a crucially important tool used in many a

2011 YRBS Weighting Procedures.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps. ... 2011 YRBS Weighting Procedures.pdf. 2011 YRBS Weighting ...

Heterogeneous Information and Labor Market ...
eliminate this discrepancy between the data and model-predicted movements. ..... Substituting in (5), integrating over all i and ignoring the constant terms ...... In practice, the ability of an individual firm to forecast conditions in the labor mar

Institutional Investors, Heterogeneous Benchmarks and the ...
holm School Economics, University of Texas at Austin, and conference ...... manager 1 sells asset 2, thus driving its price down, and buys asset 1, thus driving its ...

Heterogeneous Information and Labor Market ...
†Email: [email protected]. 1 .... 4In the benchmark calibration, firm-specific shocks are also slightly more persistent than aggregate shocks. Since hiring decisions ...

Optimal Detection of Heterogeneous and ... - Semantic Scholar
Oct 28, 2010 - where ¯Φ = 1 − Φ is the survival function of N(0,1). Second, sort the .... (β;σ) is a function of β and ...... When σ ≥ 1, the exponent is a convex.

QUALITY DIFFERENTIATION AND HETEROGENEOUS ...
products, now using disaggregated household level data and accounting for .... is to analyze the consumers' price elasticity for mint gum accounting for product.

Explicit and Robust Inverse Distance Weighting ... - Jeroen Witteveen
Center for Turbulence Research, Stanford University, ... equations of the size of the number of internal flow points ni to determine the deformed state of the mesh. ..... 36th AIAA Fluid Dynamics Conference and Exhibit, San Francisco, California ...

Star-Shaped Probability Weighting Functions and ...
An Application to the Overbidding Puzzle,” International Economic Review, forthcoming. ... Princeton, NJ: Princeton University Press, 501-586. Landsberger M.

Institutional Investors, Heterogeneous Benchmarks and the ...
formulation allows us to vary the degree of benchmark heterogeneity in the economy. ... We find that in the presence of heterogeneous benchmarking, cashflow ...

Variances without reference to an Item.pdf
Variances without reference to an Item.pdf. Variances without reference to an Item.pdf. Open. Extract. Open with. Sign In. Main menu.

Round Weighting Problem and gathering in radio ...
Internet. This problem was asked by France Telecom R&D (now Orange. Labs) under the ... We suppose here a binary symmetric model of interference. For that we ...... Theorem 5 Let G be a 2-connected graph and let d = 1. If. ∑ v/∈VK0.

Star-Shaped Probability Weighting Functions and ...
An Application to the Overbidding Puzzle,” International Economic Review, forthcoming. ... Cox J., Smith V. and J. Walker, 1985, “Experimental Development of.

Sensory Weighting of Force and Position Feedback in ...
Oct 16, 2009 - weighted heavier on stiff objects (small deflections). Figure 1 illustrates the experimental approach to assess weighting between force and position feedback. The subject was trained to blindly reproduce a force or position against a v

Importance Weighting Without Importance Weights: An Efficient ...
best known regret bounds for FPL in online combinatorial optimization with full feedback, closing ... Importance weighting is a crucially important tool used in many areas of ...... Regret bounds and minimax policies under partial monitoring.

segmentation of vessels using weighted local variances ...
Aug 25, 2006 - Signature Page iii. Acknowledgments ...... synthetic image, six digital subtraction angiograms and four retinal angiograms, the proposed active ...