Previous: Contributors Up: Reference Manual Next: Commands for Programmers and


Models Zelig Can Run

This section describes the mathematical components of the models supported by Zelig, using whenever possible the classification and notation of (). Most models have a stochastic component (probability density given certain parameters) and a systematic component (deterministic functional form that specifies how one or more of the parameters varies over the observed values 102#102 as a function of the explanatory variables 69#69 ).

Let 158#158 be a random outcome variable, realized as 70#70 observations 102#102 . For the probability density 159#159 with systematic feature 160#160 varying over 4#4 and a scalar ancillary parameter 21#21 (constant over 4#4 ), the stochastic component is given by

161#161    

For a functional form 162#162 , 3#3 explanatory variables 163#163 , and effect parameters 12#12 , the systematic component is:

164#164    

Using the definitions of King, Tomz, and Wittenberg, 2000, Zelig generates at least two quantities of interest:

Both the predicted values and expected values produced by Zelig can be displayed as histograms or density estimates (to summarize the full sampling or posterior density), or summarized with confidence intervals (by sorting the simulations and taking the 5th and 95th percentile values for a 90% confidence interval for example), standard errors (by taking the standard deviation of the simulations), or point estimates (by averaging the simulations). The point estimate of predicted and expected values are the same only in linear models. In almost all situations, simulations from predicted values have more variance than expected values. As the number of simulations increases the distribution of the expected values tends toward a constant; the distribution of the predicted values does not collapse as the number of simulations increases.

165#165 166#166 167#167 168#168 169#169 170#170 171#171 172#172 173#173 174#174 175#175 176#176 177#177 178#178 179#179 180#180 181#181 182#182 183#183 184#184 185#185 186#186 187#187 188#188 189#189 189#189 190#190 190#190 191#191 192#192 193#193 194#194 195#195 196#196 197#197 198#198 199#199 200#200 201#201 202#202 203#203 204#204 205#205 206#206 207#207 208#208 209#209 210#210 211#211 212#212 213#213 214#214 215#215 216#216 217#217 218#218 219#219 220#220 221#221 222#222 223#223 224#224 225#225 226#226 227#227 228#228 229#229



Gary King 2011-11-29