search for: fac2list

Displaying 2 results from an estimated 2 matches for "fac2list".

Did you mean: acllist
2010 Jan 29
1
create an R object in a loop
Hi everybody, To run some statistical tests from the package WRS (from Rand R Wilcox), I need to store my data in a list, which fac2list() from this package does very well. But I would like to do it in a loop for each numerical variable. It would be easier! For now, I have the loop with the extraction and storage into a list. The code is below. ----- # Defines variables file <- ssfamed #data file obje...
2010 Feb 04
5
export test results to csv
...sample dataset, but for some reason it didn't work, so please excuse the length of the file. I also attached a txt with the output (copy/paste) in case that helps. ---- > library(WRS) > ssfamed <- read.table(file=file.choose(), header=T, sep="\t") > ssfa_Asfc <- fac2list(ssfa[,7], ssfa[3]) #store into list mode > test <- pbmcp(ssfa_Asfc, alpha=0.05, nboot=2000, bhop=F) #it takes about 5 seconds to run > write.csv(test, file="pbmcp.csv", append=F, quote=F, row.names=F) Error in data.frame(output = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, :...