Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support special response objects (Was: Split the data input into predictor-variables and response-variables) #119

Open
finnlindgren opened this issue Jun 16, 2021 · 2 comments
Assignees

Comments

@finnlindgren
Copy link
Collaborator

finnlindgren commented Jun 16, 2021

@finnlindgren wonder if to avoid confusion like this lgcp could accept two data objects? One for points and one for covariates?

Originally posted by @ASeatonSpatial in #118 (comment)

@ASeatonSpatial Yes, depending on the details of how the predictor model inputs can be separated from the response variable, that should be doable. The current setup is based on the common assumption that the "data" input contains the response variable, and any values associated with the individual points, such as marks for marked point processes. But by allowing a more general separation between "component and formula inputs" and "response variable information", the data argument to like() would more naturally take on the "component and formula inputs" interpretation, and a separate argument would be needed for the response variable information. I plan to work on the design and implementation for this later this summer; it's needed for a broad range of models, e.g. models that integrate over regions (including point transect count models).

This is also needed for the special inla.surv and inla.mdata response objects.

@finnlindgren
Copy link
Collaborator Author

An interface design challenge for this is how to distinguish between "evaluate gridded data input at locations and use those to evaluate the component effect, which is then accessible in the predictor expression" from "evaluate the component at all the grid locations and then use the predictor expression to do some complex nonlinear evaluation of the values". Each component might need a new option to control this behaviour. It's a non-trivial problem.

@finnlindgren
Copy link
Collaborator Author

finnlindgren commented Dec 12, 2021

This has been implemented in c490cf3, that adds a separate response_data input to like(). We're working on the "aggregated predictor" interface issues, which is a separate problem, and not a bug as such.

@finnlindgren finnlindgren changed the title Split the data input into predictor-variables and response-variables Support special response objects (Was: Split the data input into predictor-variables and response-variables) Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant