Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Covariate Analysis #1

Open
MarilynMil3s opened this issue Apr 19, 2023 · 1 comment
Open

Covariate Analysis #1

MarilynMil3s opened this issue Apr 19, 2023 · 1 comment

Comments

@MarilynMil3s
Copy link

Hello! I had previously used NOISeq with covariates in the factor argument but now I am getting an error
` PrePost_noiseq<-
NOISeq::noiseq(
PrePost.UQ_batchCorrection2,
factor=c("Group", "Age"),
k=NULL,
norm = "n",
conditions = c("PRE","POST"),
pnr = 0.2,
nss = 5,
v = 0.02,
lc = 1,
replicates="no"

)
"Computing (M,D) values..."
Error in if (factor == i) { : the condition has length > 1`

is there any way to include covariates?

@soniatarazona
Copy link

The covariates must be included in the NOISeq object you input to noiseq function. In your case, is PrePost.UQ_batchCorrection2 a noiseq object? If so, and the factors are well defined in that object, in argument factor, you just can pick up one factor at a time (either Group or Age, but not both). Please, read again the package documentation and let me know if it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants