# \donttest{
# Example usage:
df4modelInpt <- data.frame(
NoOfReplicates = c(3, 5, 7, 9, 11),
HeritabilityClass = c("high", "mid", "low", "high", "mid"),
HeritabilityValue = c(0.5, 0.6, 0.7, 0.5, 0.6),
pwr = c(0.8, 0.9, 0.85, 0.88, 0.86),
FoldChange = c(2, 3, 2.5, 2.8, 3.2),
Tissue = c("Liver", "Liver", "Kidney", "Liver", "Kidney")
)
# Fit the model
model <- smplSizPredModel(
df4model = df4modelInpt,
heritabilityClass = "high",
inptPwr = 0.8,
fc = 2,
tissue = "Liver"
)
# Summarize the results
summary(model)
# }
Run the code above in your browser using DataLab