Merging Methylation data (M-values) with phenotypic data
0
0
Entering edit mode
2.1 years ago
hayleyw • 0

Hi Members,

I am relatively new to R and am having an issue with lme4. I want to use my methylation (m-values) and my phenotypic datasets. However, when I run my code I get an error about different variable lengths. I believe I need to combine these datasets into one, but I am so lost at how to do this and could really use some help. I have provided additional information below.

Original lme4 code:

binTP.lme= lmer(adj.m ~ pheno$condition + pheno$Sex + pheno$Age.at.collection + pheno$smoke + pheno$EUR + pheno$AFR + (1|pheno$pairing))

Error message: Error in model.frame.default(drop.unused.levels = TRUE, formula = adj.m ~ : variable lengths differ (found for 'pheno$condition')

adj.m dimensions = 586229 46 pheno dimensions = 46 15

Thanks in advance!

methylation r lme4 • 479 views
ADD COMMENT

Login before adding your answer.

Traffic: 3987 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6