• Register
0 votes

Problem :

I have the dataset consisting of the following: one column language containing five different languages. Two of the other columns Canonicity and Intrinsic containing either (0, 1). One last column is useOfIntrinsic. I would like to test a use of intrinsic as the function of LanguageCanonicity and useOfIntrinsic. Thus, I ran a following mixed-effect logistic regression model:

glmer(INT ~ Language * Canonicity + Language + Canonicity + useOfIntrinsic +(1|Picture) + (1|ID), data = data, family = "binomial")

I also tried as below:

glmer(INT ~ Language + Canonicity + useOfIntrinsic:Language + Canonicity:CAN + useOfIntrinsic + (1|Picture) + (1|ID), data = data, family = "binomial")

But, I get below error:

“Fixed-effect model matrix is rank deficient so dropping 1 column / coefficient”

 Any solution on my error?

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

You can think about the model you are trying to fit as by asking for an estimate of a effect of useOfIntrinsic while controlling for a effect of Language. However once you've controlled for a effect of Language, you've already completely dealt with a differences between languages that you might want to attribute to the useOfIntrinsic. To put both your variables in a single model, you either need some of the independent variation in the two variables (i.e. some variation in useOfIntrinsic within the single language), or you need to place the some additional constraints on how you estimate a effect of Language. One possibility would be to experiment with the estimating Language as a random effect, but I don't necessarily recommend this given that you only have the five languages in the sample.

9 7 4
38,600 points

Related questions

1 vote
1 answer 5 views
Problem: How can I deal with this problem : prediction from a rank-deficient fit may be misleading
asked Apr 1 MUHAMMAD MUNEEB 80k points
0 votes
1 answer 6 views
Problem: I was wondering if anyone could help me with the following problem. When I conduct a VIF analysis between various explanatory variables it comes up with the following error message: VIFs returning aliased coefficients in R
asked Mar 20 ummesalma 22k points
0 votes
1 answer 13 views
Problem: HELP: Error in terms.formula(formula, data = data) : invalid model formula in extractvars
asked Mar 14 Wafa Abu Yousef 6.1k points
1 vote
1 answer 2.1K views
Problem : I am facing following error : formula(formula, data = data) : invalid model formula in ExtractVars I am using the below code: install.packages("rpart") library("rpart") # you must change the below from windows to work on your linux box: mydata <- read.csv(file="c ... file to commas. I guess it is unable to read the data correctly. I am very new to the R and also a very new programmer.
asked Dec 14, 2019 alecxe 7.5k points
0 votes
1 answer 1.1K views
Problem : I face folowing error when I run an ANOVA on R in model.response(mf, "numeric") : using type = "numeric" with a factor response will be ignored
asked Nov 12, 2019 peterlaw 6.9k points
0 votes
1 answer 1.3K views
Problem : I am learning to work with neural networks in R. As a learning tutorial I am using the following problem over at Kaggle: https://www.kaggle.com/c/titanic This problem is specifically designed for people who want to learn and please note there is no reward ... Error in neurons[[i]] %*% weights[[i]] : requires numeric/complex matrix/vector arguments Can anyone help in resolving my issue?
asked Nov 27, 2019 alecxe 7.5k points
0 votes
1 answer 38 views
Problem: comparison (1) is possible only for atomic and list types.
asked Feb 22 Dan phillip 4.1k points
1 vote
2 answers 337 views
Problem : I am very new to R. Currently I want to split the column of my data frame (menuA) is as shown below Column1 1|3|4|5 4|5|6|7 I was trying to split my numbers in above columnA so I coded it as shown below. menuA <- data.frame (do.call('rbind', ... 120"),  :   number of columns of result is not a multiple of vector length (arg 1) Please let me know if all my data is separated properly?
asked Apr 22, 2020 stewart 4k points
0 votes
1 answer 3 views
Problem : How to make a new column in r ??
asked Apr 2 Madhav96 2.3k points
0 votes
1 answer 2 views
Problem: I have a data frame and I want to create a new column based on existing columns. Any suggestions?
asked Mar 30 ummesalma 22k points