Package: gtree 0.1.1

gtree: gtree basic functionality to model and solve games

gtree basic functionality to model and solve games

Authors:Sebastian Kranz

gtree_0.1.1.tar.gz
gtree_0.1.1.zip(r-4.5)gtree_0.1.1.zip(r-4.4)gtree_0.1.1.zip(r-4.3)
gtree_0.1.1.tgz(r-4.4-any)gtree_0.1.1.tgz(r-4.3-any)
gtree_0.1.1.tar.gz(r-4.5-noble)gtree_0.1.1.tar.gz(r-4.4-noble)
gtree_0.1.1.tgz(r-4.4-emscripten)gtree_0.1.1.tgz(r-4.3-emscripten)
gtree.pdf |gtree.html
gtree/json (API)

# Install 'gtree' in R:
install.packages('gtree', repos = c('https://skranz.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/skranz/gtree/issues

On CRAN:

economic-experimentseconomicsgambitgame-theorynash-equilibrium

354 exports 16 stars 3.74 score 36 dependencies 1 dependents 23 scripts

Last updated 4 years agofrom:dfcfa5b7a4 (on master). Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 04 2024
R-4.5-winWARNINGOct 04 2024
R-4.5-linuxWARNINGOct 04 2024
R-4.4-winWARNINGOct 04 2024
R-4.4-macWARNINGOct 04 2024
R-4.3-winWARNINGOct 04 2024
R-4.3-macWARNINGOct 04 2024

Exports:actionaction.level.to.gambit.txtaction.ruleadapt.prob.to.setadd.call.players.to.dfadd.trembleadd.tremble.to.stageadd.util.colsadd.var.to.know.matall.fieldsany.fieldas.names.listat.tree.pathcase_distinctioncasesceq.to.eq.matchange.namecheck.var.namecheck.vgcheck.vg.rules.eqclear.non.vgclear.tg.spi.liclear.tg.spo.liclear.tg.subgamescombine.conditions.strcommon.and.distinct.path.partscompute.action.levelcompute.efg.move.indscompute.first.bestcompute.info.setscompute.nature.levelcompute.sg.outcomescompute.single.player.eqcompute.tg.et.matcompute.tg.et.oco.etccompute.tg.fields.for.internal.solvercompute.tg.stagecompute.tg.subgamescompute.transformation.levelcompute.vg.vars.infocond.eq.outcomecond.expected.outcomescontainsconvert.atomcustom.whisker.rendercut.to.sub.tree.pathdeparse1displaydo.call_do.call.if.existsdoes.intersectdummies.to.factorenvyUtileq_cond_expected_outcomeseq_cond_outcomeseq_expected_outcomeseq_lieq_outcomeseq_tableseq.expected.outcomeeq.li.cond.outcomeseq.li.expected.outcomeseq.li.outcomeseq.li.tableseq.outcomeeq.table.ruleseq.tableseval_subseval.formulaeval.key.table.to.dfeval.key.tables.to.dfeval.on.dfeval.or.returneval.randomVar.to.dfeval.set.to.dfeval.strategyMethodDomainexample.case_distinctionexample.check.vg.eqexample.classify.vg.varsexample.data.importexample.eval.set.on.dfexample.find.perfect.predictor.colsexample.first.bestexample.fix.actionsexample.gambit.solve.eqexample.gameexample.get.envy.utilexample.multi_size_casesexample.normsexample.remove.all.tgexample.solve.single.player.tgexample.str.spaceexample.table.ruleexample.unifLossAvUtilexamples.common.and.distinct.path.partsexamples.jg.to.rgexamples.loss.aversion.util.funexamples.make.tg.iso.dfexamples.make.tg.speexamples.OwnSumMinexamples.reduce.tgexamples.rg.to.vgexamples.spliceexamples.tg_recomputeexamples.types.eqexamples.utility.funexamples.var.in.exprexamples.vg.to.tgexamples.weakly.dominatedexpected.outcomesextract.vg.vars.infof2cfill.vecfilter_by_listfind.addressfind.info.set.outcomesfind.lev.descendant.info.setsfind.perfect.predictor.colsfind.unknown.vars.at.actionsfind.vg.formula.varsfirst.non.nullfix.tg.actionsfix.vg.actionfix.vg.actionsflatten.names.listflatten.names.list.examplesform2stringgambit.out.txt.to.eq.ligambit.output.to.eq.ligambit.solve.eqgame_add_tremblegame_add_typesgame_change_paramgame_compilegame_copygame_define_studygame_fix_action_preferencesgame_fix_actionsgame_gambit_solvegame_gambit_solve_qregame_prefer_outcomesgame_printgame_print_eq_tablesgame_print_size_infogame_run_studygame_set_optionsgame_set_preferencesgame_solvegame_solve_spegame_studygame_write_efggame.move.varsgame.strat.method.domain.varsgame.study.eq.outcomesgame.var.setget_outcomesget.all.variables.from.movesget.child.subgamesget.efg.dirget.eqget.eq.dirget.eq.idget.first.best.tgget.fix.df.varget.gambit.solverget.game.dirget.games.dirget.jgget.jg.hashget.jobs.dirget.lev.df.col.from.prev.levsget.namesget.play.deviation.infoget.project.dirget.rgget.strategyMethodDomainVarget.tgget.tg.idget.util.funs.nameget.vgget.xsgtree.mutate.codegtree.solve.spegtree.stop.on.errorgtreeDataMappinghas.colhas.uptodate.eqid.to.indexidentical.rows.groupsidentical.rows.groups.oldineqAvUtilinsert.sublistint.seqinteger.to.labelintersect.listintersect.vector.listis_trueis.emptyis.falseis.monotone.predictoris.multi.perfect.predictoris.perfect.predictoris.sg.strat.weakly.dominatedis.truejg.parse.formulajg.rparse.formulasjg.to.rgkel.check.call.varskeyErrorLoglev.action.to.naturelev.action.to.nature.by.rulelev.action.to.nature.fix.lilev.df.to.isolist.call.to.call.listlist.to.styleload.tgloss.aversion.utilloss.aversion.util.funlossAvUtilmake_game_optionsmake_game_paramsmake.best.reply.tgmake.game.dirmake.sg.chunked.spomake.sg.spimake.sg.spo.dfmake.tg.action.keysmake.tg.ise.dfmake.tg.iso.dfmake.tg.know.var.groupsmake.tg.lev.know.var.groupsmake.tg.spi.limake.tg.spo.limemory.listmerge.fix.actions.nat.levsmove.names.inclusive.strat.methodmoves.to.spmulti_size_casesna.as.zeroname.by.namenamed.listnature.level.to.gambit.txtnatureMovenew_gamenlistnorm.ruleOwnSumMinparse.jg.paramsparse.jg.stagesparse.jg.varparpaste.matrix.colspath.partspayoffUtilplay.vg.rulesplay.vg.rules.with.deviationpref_change_paramspref_custompref_envypref_heterogeneous_playerspref_ineqAvpref_lossAvpref_payoffprint.gtree_gameprint.gtree_stageprint.gtree_tgprint.gtree_vgquick.dfquote.charquote.stringsrecode2recompute.tg.probsrecompute.tg.transformationrecompute.tg.transformationsrecompute.transformation.on.dfrecursive.speq.to.ceqreduce.action.levelreduce.key.tablereduce.key.table.with.probsreduce.tgremove.all.tgremove.colsremove.from.listremove.list.elementsremove.quotesreplace.by.sublistreplace.payoff_i.in.utilrewrite.if.formularg.to.vgrobust.rbindlistrowProdsrows_alongsave.eq.lisave.rgsave.tgsave.vgscselfAltruReciTypesUtilselfishReciprocalTypesUtilset.leaf.valueset.namesset.new.tg.lev.liset.project.dirset.tg.prefset.tg.utilset.tg.welfareset.vg.rulessg.matrixsolve.all.tg.spesolve.nature.super.sgsolve.sg.spesolve.sg.spe.given.removesp.to.movessp.to.s.isp.to.sp.not.ispo.to.speustagestr_combinestr_containsstr_ends_withstr_splitstr_starts_withstr.combinestr.ends.withstr.spacestr.starts.withtg.check.branching.limittg.compute.stage.conditiontg.compute.stage.playerstg.efg.file.nametg.msg.funtg.spe.li.to.eq.litg.to.efgtg.to.iso.dftg.update.stage.knowledgetry.with.msgunifLossAvUtilunion.of.listunnest_update.vg.stageutil.df.to.gambit.txtvar.in.exprvar.in.expr.strvariants.from.tree.pathvec.list.to.matrixvg.add.tremblevg.add.typesvg.play.expected.utilityvg.stage.action.sets.by.info.setvg.stage.deviationsvg.to.complier.tgvg.to.complier.vgvg.to.first.best.tgvg.to.tgxs.col.order

Dependencies:clicodeUtilscpp11data.tabledigestdplyrdplyrExtrasdtplyrfansigenericsgluejsonlitelazyevallifecyclelubridatemagrittrmatrixStatspillarpkgconfigpurrrR6restorepointrlangstringistringrstringtoolssystibbletidyrtidyselecttimechangeutf8vctrswhiskerwithryaml

Readme and manuals

Help Manual

Help pageTopics
Specify an action in a stageaction
A simple function to define case distinctionscase_distinction
Return conditional expected equilibrium outcomeseq_cond_expected_outcomes
Return conditional equilibrium outcomeseq_cond_outcomes
Return a data frame of expected equilibrium outcomeseq_expected_outcomes
Return the computed equilibria using the internal representationeq_li
Return a data frame of all equilibrium outcomeseq_outcomes
Return solved equilibrium in a table formateq_tables
Changes one or several parameters of a gamegame_change_param
Compile a game defined with 'new_game'game_compile
Make a deep copy of a gamegame_copy
Set add a large amount of utility if a player plays a particular actiongame_fix_action_preferences
Fix move probabilities of actionsgame_fix_actions
Solve equilibria of a game using Gambitgame_gambit_solve
Solve for quantal response equilibria using Gambitgame_gambit_solve_qre
Set add a large amount of utility if a player plays a particular actiongame_prefer_outcomes
Change options of an already created game objectgame_set_options
Set players' preferencesgame_set_preferences
Solve equilibria of a gamegame_solve_spe
Write game as a Gambit efg filegame_write_efg
Return a data frame of all possible outcomesget_outcomes
Returns logical vector replacing NA by FALSEis_true
Specify the game options inside 'new_game'make_game_options
Specify the game parameters This function is only to be used inside 'new_game'. To change the parameters of an existing game call 'game_change_params'.make_game_params
Specify a random move of nature in a stagenatureMove
Create a new gtree gamenew_game
Change the parameters of a preference objectpref_change_params
Create a custom preferencepref_custom
Fehr-Schmidt inequality aversion with envy onlypref_envy
Combine preferences for different playerspref_heterogeneous_players
Fehr-Schmidt inequality aversion.pref_ineqAv
'Linear loss aversion preferences with a single reference pointpref_lossAv
Utility is equal to monetary payoff.pref_payoff
Specify a stage for a gamestage