Skip to content

Add Spatial correction to mixed model - sommer #5400

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

Merged
merged 4 commits into from
Apr 14, 2025

Conversation

chris263
Copy link
Contributor

Description

Checklist

  • Refactoring only
  • Documentation only
  • Fixture update only
  • Bug fix
    • The relevant issue has been closed.
    • Further work is required.
  • New feature
    • Relevant tests have been created and run.
    • Data was added to the fixture
      • Data was added via a patch in /t/data/fixture/patches/.
    • User-Facing Change
      • The user manual in /docs has been updated.
    • Any new Perl has been documented using perldoc.
    • Any new JavaScript has been documented using JSDoc.
    • Any new legacy JavaScript has been moved from /js to /js/source/legacy.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor typo at line 76

Fixing typo on MixedModels.pm line 76
@lukasmueller lukasmueller self-requested a review April 10, 2025 15:34
Copy link
Contributor

@cmn92 cmn92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before running the model, I suggest checking the factors to ensure they have levels 2 or more because sommer complains when it only has one unique value with this error "Error in contrasts<-(tmp, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels". we could exclude those factors.

print(paste("FIXED MODEL :", fixed_model))
print(paste("RANDOM MODEL: ", random_model))
print(paste("FIXED FACTORS: ", fixed_factors))
print(paste("RANDOM FACTORS: ", random_factors))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before running the model, I suggest checking the factors to ensure they have levels 2 or more because sommer complains when it only has one unique value with this error "Error in contrasts<-(*tmp*, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels". we could exclude those factors.

@lukasmueller lukasmueller merged commit 83b7214 into master Apr 14, 2025
5 checks passed
@lukasmueller lukasmueller deleted the topic/trial_spatial_correction branch April 14, 2025 15:28
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

Successfully merging this pull request may close these issues.

4 participants