unmarkedPower-methods {unmarked} | R Documentation |
Methods for unmarkedPower objects
Description
Various functions to summarize and update unmarkedPower objects
Usage
## S4 method for signature 'unmarkedPower'
show(object)
## S4 method for signature 'unmarkedPower'
summary(object, ...)
## S4 method for signature 'unmarkedPower'
update(object, ...)
Arguments
object |
An object of class |
... |
For |
Value
For show
and summary
, summary output is printed to the console.
For update
, a new powerAnalysis
object corresponding to the
new arguments provided.
Author(s)
Ken Kellner contact@kenkellner.com
See Also
Examples
## Not run:
# Simulate an occupancy dataset
forms <- list(state=~elev, det=~1)
coefs <- list(state=c(intercept=0, elev=-0.4), det=c(intercept=0))
design <- list(M=300, J=8) # 300 sites, 8 occasions per site
occu_umf <- simulate("occu", formulas=forms, coefs=coefs, design=design)
# Fit occupancy model to simulated data
template_model <- occu(~1~elev, occu_umf)
# Set desired effect sizes to pass to coefs
effect_sizes <- list(state=c(intercept=0, elev=-0.4), det=c(intercept=0))
# Run power analysis
pa <- powerAnalysis(template_model, coefs=effect_sizes, alpha=0.05)
# Look at summary
summary(pa)
# Update the analysis with new arguments
(pa2 <- update(pa, alpha=0.01))
## End(Not run)
[Package unmarked version 1.4.1 Index]