Description Usage Arguments Details Value Note Author(s) References Examples

ImitSim() runs an R version of the imitation simulation as published in *Working, Shirking, and Sabotage* (1997). The original function was written in APL11, which hardly anyone uses. This is the core function for the simulation in the book.

1 2 | ```
ImitSim(replications, NumBur, MaxIter, supervision, omniscient, posprefs, binary, Tolerance, Std,
Punishment, SupObsParms, PrefParms, RespParms, BurObsParms)
``` |

`replications` |
Number (integer) of replications of each run. |

`NumBur` |
Number (integer) of Bureaucrats. |

`MaxIter` |
Number (integer) of iterations for each replication to run. |

`supervision` |
"Relative" (default) for supervisor to identify deviants based on low-end deviations from responses by other bureaucrats, "Fixed" for the supervisor to identify deviants based on a floor of minimal performance. |

`omniscient` |
Logical, FALSE (default) if the supervisor cannot see everyone, TRUE if she can. |

`posprefs` |
Logical, FALSE (default) if the preferences of the bureaucrats are not constrained to be positive. TRUE if the preferences of the bureacrats must be positive. |

`binary` |
TRUE (default) if the observability matrix is converted to binary for the connectivvity calculations. Throws an error otherwise. |

`Tolerance` |
Number (float) of standard deviations away from mean that the supervisor will regard as being deviant. Only makes sense if the "supervision is "Relative". |

`Std` |
Number (float) in range (-1,1) for supervisor to regard as the floor for performance. Only makes sense if the supervision is "Fixed". |

`Punishment` |
Number (float) subtracted from each deviant bureaucrat. |

`SupObsParms` |
Vector (mean,sd) for the observability of the supervisor. Can be redunddant with omniscient, which sets all bureaucrats as visiible (i.e., equivalent to SupObsPamrs=c(1,0) |

`PrefParms` |
Vector (mean,sd) for the preferences of the bureaucrat. |

`RespParms` |
Vector (mean,sd) for the responses of the bureaucrats. |

`BurobsParms` |
Vector (mean,sd) for the observability of each bureaucrat to one another. |

`debug` |
If TRUE, prints debugging information. |

`quiet` |
If TRUE, prints no startup information (but will print debugging information, if requested). |

This might be the place for text about the way the function will work.

`ExecSummary ` |
Returns a (tidy-ready) dataframe that contains: |

`version ` |
1.1b3 |

`NumBurs ` |
Number of bureaucrats (default=10) |

`MaxIter ` |
Number of iterations per replication (default=10) |

`binary ` |
Whether the connectivity of the observability is computed using a binary adjacency matrix. |

`supervision ` |
The mode of supervision ("Relative", "Fixed") |

`posprefs ` |
Are the preferences constrained to be positive? |

`omniscient ` |
Is the supervisor omniscient? (I.e., can see performance of all her subordinates?) |

`Performance ` |
Matrix of performance of each bureaucrat in each iteration of every replication, (Replications*MaxIter*Numbers) x (replication, iteration, (vector of responses))) |

`ObstyRecord ` |
Matrix of observability for each replication, (MaxIter*Numburs) x Numburss) |

`SeenRecord ` |
Matrix of observability of each bureaucrat by supervisor in each iteration of every replication, (Replication*MaxIter*NumBurs) x (replication, iteration, (vector of seen bureaucrats)) |

Makes use of the igraph library. You should have it installed.

John Brehm

Brehm, John and Scott Gates. 1997. Working, Shirking, and Sabotage. Ann Arbor, MI

1 2 3 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.