pyblp.ImportanceSamplingResults.to_problem¶
-
ImportanceSamplingResults.to_problem()¶ Re-create the problem with the agent data constructed from importance sampling.
The re-created problem will be exactly the same, except
Problem.agentswill be replaced withImportanceSamplingResults.sampled_agents.- Returns
ImportanceSamplingProblem, which is aProblemupdated to use agent data constructed from importance sampling.- Return type
ImportanceSamplingProblem
Examples