DistanceDevelopment / MCDS_mrds_compare

1 stars 0 forks source link

Passing start values and bounds #4

Open LHMarshall opened 1 year ago

LHMarshall commented 1 year ago

Things to check and test when passing start values and bounds

LHMarshall commented 1 year ago

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