search for: factornam

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

Did you mean: factorname
2012 Jan 21
1
Function for multiple t tests
Hi, I want to run t.test() for several variables among two groups, and I would like to skip the tedious process of collecting information to assemble a table, but I am not sure if the function I want already exists. Any suggestion would be appreciated. I have a working example, as required by the posting guide: my_swiss = swiss[-1,] my_swiss$facto = rep(1:2,nrow(my_swiss)/2)
2005 Aug 26
2
Creating factors from continuous variables
...umber of categories increases) way to do this. I also don't like that my factor names can only be numbers in this example. I would prefer a solution to take a form like the following (inspired by the "hist" function): # define breakpoints x.breaks = c(0, 0.4, 0.5, 0.6, 1.0) x.factornames = c( "0 - 0.4", "0.4 - 0.5", "0.5 - 0.6", "0.6 - 1.0" ) x.factor = unknown.function( x, x.breaks, x.factornames ) Thanks, David P.S. Here's what I have read to try to find the answer to my problem: * "Introductory Statistics with R" * "...