Skip to content

beta argument in self.loglike #3

@jiafengkevinchen

Description

@jiafengkevinchen

Should the following function have a beta argument (or a **kwargs) that is passed to self.fl_costs?

def loglike(self, params):
"""
The log-likelihood of the Dynamic model is estimated in several steps.
1°) The currenter parameters are supplied to the contraction mapping
function
2°) The function returns a matrix of decision probabilities for each
state.
3°) This matrix is used to compute the loglikelihood of the
observations
4°) The log-likelihood are then summed accross individuals, and
returned
"""
util = self.fl_costs(params, suppr_output=True)
pchoice = self.choice_prob(util)
logprob = np.log(np.dot(pchoice.T, self.state_mat))
return -np.sum(self.dec_mat*logprob)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions