[R] Three-way mosaic residual plot with survey data

2014-12-30 Thread Mast, Brent D
Hi. I want to produce a three-way mosaic residual plot with survey data. I'm using the mosaic function from the vcd package for the plot, and the svytable function from the survey package to produce the contingency table. Here is my code for a two-way table (that works) and a three-way table tha

[R] lm predictions for rows with missing y values

2014-04-15 Thread Mast, Brent D
Hi. I'm trying to produce lm fitted values and standard errors for cases with missing y values. I know how to compute these myself with matrix algebra, but I'm wondering if there is an appropriate na.action in the lm function to do this. Here is some simple code where I use na.action=NULL with