• Register
0 votes
778 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

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
2 answers 219 views
219 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 1.1K views
1.1K 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.7K views
1.7K 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 880 views
880 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 1.4K views
1.4K 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, 2020 morrisBson 3.2k points
1 vote
1 answer 729 views
729 views
Problem: I have limited knowledge of R and ggplot. I have recently written a function and trying to run the function as shown below: ggplot(datfr, aes(x = dat1[1:951,], y = dat2[1:951,])) + geom_point() After executing above function I am facing below error: Don't ... and when I try to use nrow on my two datasets it again returns the same number of rows. How can I fix above ggplot related error.
asked May 26, 2020 Martin K 6.6k points
1 vote
1 answer 157 views
157 views
Problem: I have very fundamental knowledge of logistic regression. I am trying to write code on logistic regression. I have done a lot of research on this issue but because of my limited knowledge I am still unable to fix the below error. Error ... (data) stock.direction <- data$Direction training_model=glm(stock.direction~data$lag2,data=data,family=binomial) Please help me in fixing above error.
asked May 26, 2020 Martin K 6.6k points
1 vote
1 answer 600 views
600 views
Problem : Currently I am learning r. I have the data table "normal" which has the numeric as far as I know normalized values. If I try to execute the below command k <- kmeans(normal,center=3) Then I always face the below error: &ldquo;Error in do_one(nmeth) : NA/NaN/ ... call (arg 1)&rdquo; I am trying to fix it by researching on it but still unable to fix it. Can somebody help me in fixing it?
asked Mar 28, 2020 morrisBson 3.2k points
0 votes
1 answer 203 views
203 views
Problem : I am very new to r programming. I have the array and I want to implement the below method: x<-function(b){ if (b>0){ b/sum(b) } else 1 } This method is written to check if there is any value which is larger than the 0 and if it says ... message: &ldquo;Warning message: r the condition has length > 1 and only the first element will be used&rdquo;. How can I fix the above error message?
asked Feb 24, 2020 mphil 2.3k points