call_strategy {Rtrack} | R Documentation |
Calculation of search strategies.
Description
Calculates search strategies from path metrics.
Usage
call_strategy(metrics, model = "default")
Arguments
metrics |
An |
model |
The strategy calling model that should be used. Default models
have been implemented for for Morris water maze and Barnes maze
( |
Details
This function implements a classifier based on a trained random forest model.
If the model
parameter is left at "default", then the default model
for the appropriate experiment type will be automatically selected. Please
note that search strategies are only available for Morris water maze and
Barnes maze at this stage. It is expected that other models will be added in
the future and your feedback is welcome.
Value
An rtrack_strategies
object. The calls
element contains
the called strategy/strategies as well as confidence scores for all
possible strategies.
See Also
threshold_strategies
, plot_strategies
.
Examples
require(Rtrack)
track_file <- system.file("extdata", "Track_1.tab", package = "Rtrack")
arena_description <- system.file("extdata", "Arena.txt", package = "Rtrack")
arena <- read_arena(arena_description)
path <- read_path(track_file, arena, track.format = "raw.tab")
metrics <- calculate_metrics(path, arena)
strategies <- call_strategy(metrics)
# Inspect the strategy call
strategies$calls