Displaying 1 result from an estimated 1 matches for "yori".
Did you mean:
yor
2011 Sep 21
1
glmnet for Binary trait analysis
...e saying
Error in lognet(x, is.sparse, ix, jx, y, weights, offset, alpha, nobs, :
NA/NaN/Inf in foreign function call (arg 5)
when I try to analysis a binary trait using glmnet(R) by running the
following code
library(glmnet)
Xori <- read.table("c:\\SNP.txt", sep='\t');
Yori <- read.table("c:\\Trait.txt", sep=',');
Y=as.matrix(Yori);
X=t(as.matrix(Xori));
fit1=glmnet(X, Y, family="binomial");
in the above, X is a matrix with values 1, 0, and -1; Y is a one column
matrix with values 1 and 0.
I know how to analysis continuous traits using...