I have created two generalised linear models as follows:
glm1 <-glm(Y ~ X1 + X2 + X3, family=binomial(link=logit)) glm2 <-glm(Y ~ X1 + X2, family=binomial(link=logit))
I then use the anova
function:
anova(glm2,glm1)
but get an error message:
“Error in anova.glmlist(c(list(object),dotargs), dispersion = dispersion, :
models were not all fitted to the same size of dataset”
What does this mean and how can I fix this? I have attach
ed the dataset at the start of my code so both models are working off of the same dataset.
Related Posts:
- Istio Ingress resulting in “no healthy upstream”
- What is a LAMP stack?
- How to find Google’s IP address?
- What is a reverse shell?
- What does “:=” mean in Pseudocode? [closed]
- What is the difference between functional and non-functional requirements?
- Is a wildcard CNAME DNS record valid?
- File extension .DB – What kind of database is it exactly?
- C compiler for Windows?
- What are the rules of the std::cin object in C++?
- ngrok: tcp forwarding to 25565 (minecraft server)
- What is {{.}} in mustache?
- What is the difference between a strongly typed language and a statically typed language?
- Error in Python script “Expected 2D array, got 1D array instead:”?
- expected assignment or function call: no-unused-expressions ReactJS
- What is a callback URL in relation to an API?
- Eclipse CDT project built but “Launch Failed. Binary Not Found”
- MySQL Every derived table must have its own alias
- How to UPSERT (MERGE, INSERT … ON DUPLICATE UPDATE) in PostgreSQL?
- When do I use the PHP constant “PHP_EOL”?
- Using $this when not in object context in PHP
- DynamoDB : The provided key element does not match the schema
- Log to the base 2 in python
- How to do vlookup and fill down (like in Excel) in R?
- new types may not be defined in a return type – C++
- What is the iOS 8 System Font?
- PHP password_hash(), password_verify()
- ldap_sasl_bind(SIMPLE): Can’t contact LDAP server(-1)
- PHP – Failed to open stream : No such file or directory
- Convert a CERT/PEM certificate to a PFX certificate
- Operand type clash: int is incompatible with date + The INSERT statement conflicted with the FOREIGN KEY constraint
- class << self idiom in Ruby
- Code-first vs Model/Database-first
- java.util.NoSuchElementException: No line found
- Standardize data columns in R
- declaring a priority_queue in c++ with a custom comparator
- How to execute AngularJS controller function on page load?
- ReactJS giving error Uncaught TypeError: Super expression must either be null or a function, not undefined
- Error while trying to retrieve text for error ORA-01019
- What is runtime in context of Python? What does it consist of?
- ++someVariable vs. someVariable++ in JavaScript
- How do you get the file size in C#?
- Popup window in PHP?
- LaTeX table too wide. How to make it fit?
- Exception in thread “main” java.lang.reflect.InvocationTargetException
- git add only modified changes and ignore untracked files
- HTTP Error 404.3-Not Found in IIS 7.5
- How can I change the color of my prompt in zsh (different from normal text)?
- All com.android.support libraries must use the exact same version specification
- mkdir c++ function
- Multiplying a register value by a constant in MIPS?
- How can I run a program from a batch file without leaving the console open after the program starts?
- Getting DOM element value using pure JavaScript
- What’s the difference between SoftReference and WeakReference in Java?
- Procedural and non-procedural query language difference
- reversing list in Lisp
- Which function grows faster, exponential or factorial?
- Systrace for Windows
- How to calculate Internet checksum?
- ArrayList of int array in java
- How to disable an Android button?
- Chrome Broweser: csi.gstatic.com keeps loading
- How to get the vector between two vectors?
- Terminating app due to uncaught exception ‘NSUnknownKeyException’
- ggplot facet_wrap: At least one layer must contain all variables used for facetting
- How to parse wordpress options json
- How to make a redirection that fired a script before redirecting?
- Displaying a message when plug-in is deactivated
- Child theme on style.min.css
- Access Default Widget's Controls in Customizer Pane
- database collation differences
- can you make changes to a theme in trac while it is waiting for review?
- get_previous_post in same categories
- Cannot understand WordPress error message
- How can i hide and display elements automatically?
- Create post and update in the same flow [closed]
- jquery anchor effect does not work properly
- Using Javascript to Set Redirect Page in Contact Form 7
- A little stumped – first WordPress theme
- The Way To Write An Essay Outline In Four Steps
- Hide image on homepage [closed]
- To remove rendering of menus and header, plugin or theme?
- How to assign permissions to ApplicationPoolIdentity account
- How to see stdout of ansible commands?
- Using DD for disk cloning
- How do I view the details of a digital certificate .cer file?
- Sudo as different user and running screen
- Are SSD drives as reliable as mechanical drives (2013)?
- Can you help me with my capacity planning?
- What’s the meaning of ‘@’ in a DNS zone file?
- How to change an EC2 instance’s security group
- rm on a directory with millions of files
- IPTABLES – Limit rate of a specific incoming IP
- Should a wildcard SSL certificate secure both the root domain as well as the sub-domains?
- Best system administrator accident [closed]
- Software vs hardware RAID performance and cache usage
- How to keep rsync from chown’ing transferred files?
- sudoers: how to disable requiretty per user
- Do you have any useful awk and grep scripts for parsing apache logs? [closed]