A function for replacement of studyType slot in a RAIDSparam class.

# S4 method for class 'RAIDSparam'
studyType(x) <- value

Arguments

x

a RAIDSparam object.

value

a single character string representing the type of study. The possible choices are: "LD" and "GeneAware". The study type affects how the allelic fraction is estimated.

Value

the modified RAIDSparam object when the new value is valid.

Author

Pascal Belleau, Astrid Deschênes and Alexander Krasnitz

Examples


## Create a RAIDSparam object
paramDemo <- RAIDSparam()

## Assign the new study type to the studyType slot in the object
studyType(paramDemo) <- "GeneAware"