search for: pufnum

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

Did you mean: fnum
2012 Jan 26
2
R extracting regression coefficients from multiple regressions using lapply command
...ct the coefficients, ideally into a coefficient matrix. Could someone please help me with this? Here's the code I've written so far, I'm not sure if this is the best way to do this. Please help me. for (num in 1:50) { #PUF is the data set I'm using #Subset the data by states PUFnum <- subset(PUF, state==num) #Attach data set with state specific data attach(PUFnum) #Run our prediction regression #the variables class1 through e19700 are the 27 covariates I want to use regression <- lapply(PUFnum, function(z) lm(z ~ class1+class2+class3+class4+class5+class6+class7+x...
2012 Jan 18
4
R-Help
I am trying to create a frequency distribution and I am a bit confused. Here are the commands I have entered: > data <- read.csv(file="40609_sortedfinal.csv",head=TRUE,sep=",") > NumberOfActionsByStatus = data$STATUS > NumberOfActionsByUser = data$ETS_LOGIN > NumberOfBidOffer = data$BID_OFFER > NumberOfActionsByUser.freq = table(NumberOfActionsByUser) >