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

D72R1 mcds engine not modelling multiple covariates #183

Open
rjcamp opened this issue Sep 7, 2018 · 5 comments
Open

D72R1 mcds engine not modelling multiple covariates #183

rjcamp opened this issue Sep 7, 2018 · 5 comments
Assignees

Comments

@rjcamp
Copy link

rjcamp commented Sep 7, 2018

Running single covariates the mcds engine works correctly, but get the error ** Warning: Invalid or missing covariate. ** when running two or more covariates in a model.

dst64B7.txt
dst64E8.txt

@LHMarshall LHMarshall self-assigned this Sep 24, 2018
@LHMarshall
Copy link
Member

Investigated the Distance projects and concluded that this is most likely a data issue rather than a software issue.

The project which gave an error in 7.2 also gave an error in 7.1. A project which ran successfully in 7.1 with 2 factor level covariates was tested and still ran successfully in 7.2.

@LHMarshall
Copy link
Member

Actually... have found something pretty weird. Which factor covariate goes first appears to affect the success... these are the same analyses I just switched the order of othe two covariates. In Distance one factor is stored as text the other is stored as integer. Data files show that only difference is that the two covariates have been switched in order.

@LHMarshall LHMarshall reopened this Sep 24, 2018
@dill
Copy link
Contributor

dill commented Sep 28, 2018

Some of the sensitivity is due to some of the covariate classification not quite being right, @rjcamp is following-up on this and we'll see how much this is an issue...

@dill
Copy link
Contributor

dill commented Jan 21, 2021

Also unclear here if the issue is that ObsYr only has one level in the data (in my understanding of the MCDS command file at least, see below), yet is being included as a covariate but I don't know if that would raise the error Rick reports.

from the command file attached above:

Factor /Name=ObsYr /Levels=1 /Labels=1987;

then later

Estimator /Key=HA /Adjust=CO /NAP=0 /Covariates=Obs, ObsYr;

@lenthomas
Copy link
Member

I don't think this is the problem per se as a simple example (below) with just one factor covar with one level runs okay with the warning

** Warning: There is only one level for factor covariate COV. A minimum of two levels is required for estimation; hence this covariate will be omitted. **
dstB47.txt
dstB68.txt

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

4 participants