Description Usage Arguments Value Examples
View source: R/archetype_models.R
stepwise search of archetype counts
1 | nba_archetype_search(player_totals, num_steps = 1:5, nrep = 4, verbose = FALSE)
|
player_totals |
a tibble returned by |
num_steps |
number of steps to use (default 1:5) |
nrep |
number of repetitions at each step (default 4) |
verbose |
should the search be verbose? (default FALSE) |
a list of
archetype_parameters the parameters that define each archetype
player_alphas the players tagged with their loadings on each archetype
archetype_model the model object - the bestModel
with num_steps
archetypes
all of the models
1 2 3 4 5 6 7 8 | ## Not run:
dfstools::msf_set_apikey("your MySportsFeeds API key")
player_totals <- dfstools::nba_player_season_totals("current")
the_archetypes <- dfstools::nba_archetype_search(player_totals)
player_alphas <- the_archetypes[["player_alphas"]]
View(player_alphas)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.