• Register
0 votes
573 views

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

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
2 answers 115 views
115 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 stewart 4k points
0 votes
1 answer 811 views
811 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
1 vote
1 answer 1.2K views
1.2K 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 535 views
535 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
1 vote
1 answer 847 views
847 views
Problem : I am very new to R programming. Currently I am learning R programming. I have below two tables I have asembled them via cbind(). My first Table table_alpha is as below: x1 col1_x1 col2_x1 A "1999 12 01 00:00" " 0.4" " 0" B "1999 12 02 00:00" " - ... = table_num[,1], fill=-9999) Please find below the error: &ldquo;Error in fix.by(by.x, x) : 'by' must specify uniquely valid columns&rdquo;.
asked Mar 28 morrisBson 3.2k points