Create a survey data set from the command line rather than reading data in
from a file. This function is likely to be only useful where there are a very
small number of group sizes, or sizes of groups of glass.
an object of type psData---see readData for more
details.
Arguments
n
Either the number of groups of glass or the size of different groups
of glass, or a vector of observed groups of glass, or group sizes.
See details for a longer explanation.
count
Either the number of people in the survey sample who had
\(n\) groups of glass on their clothing, or the number of people who
had a group of glass of size \(n\).
type
either "P" or "S"
notes
a bibentry or a character string which
allows extra information about the data to be stored, such as the source,
or reference. NULL by default.
Details
If count is NULL, then it is assumed that n
consists of actual observed group sizes or numbers of groups of glass found
on a survey of N individuals. That is, one could provide n = rep(0:1,
98, 1) or n = 0:1, count = c(98, 1). The former is more useful when
performing simulation studies.