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

Passing start values and bounds #4

Open
1 of 6 tasks
LHMarshall opened this issue May 18, 2023 · 1 comment
Open
1 of 6 tasks

Passing start values and bounds #4

LHMarshall opened this issue May 18, 2023 · 1 comment

Comments

@LHMarshall
Copy link
Member

LHMarshall commented May 18, 2023

Things to check and test when passing start values and bounds

  • How does changing scaling of adjustment parameters from SIGMA to W affect the start value format and ordering?
  • Check the factor ordering.
  • What scale are they passed in and what scale does MCDS need them on?
  • Why is size field being renamed to Cluster Size?
  • In what situation do the covariates affect the shape parameter? Can the same analysis be done in MCDS?
  • Is a uniform model with covariates allowed? Scale parameter always 1. Usually adjustments are not allowed with covariates but it has happened in some cases.
@LHMarshall
Copy link
Member Author

Cluster Size appears to be included twice in the datasets passed to MCDS sometimes

library(Distance)
data(book.tee.data)
tee.data <- subset(book.tee.data$book.tee.dataframe, observer==1)

ds.model <- ds(tee.data,
               truncation = 4,
               formula = ~size+sex+exposure,
               initial_values = list(scale = c(-0.13, 0.05, 0.7, 0.3)),
               optimizer = "MCDS")

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant