Dear Giovanni,
apologize for this late reply! I was testing and reading a lot of stuff. I
tried your suggestions and the problem of singularity in the regressor cross
product vanishes when using the Group Mean function 'pgm' instead of 'pvcm'.
Nevertheless, I found the collinearity in the regre
Dear WIlliam,
thank you very much for this very useful information! I learned something new!
Enjoy your day!
Simon
On Feb 27, 2013, at 1:40 AM, William Dunlap wrote:
> This is where <<- is helpful:
>> N <- 0 ; trace(solve, quote(N <<- N + 1), print=FALSE)
> Tracing function "solve" in pack
This is where <<- is helpful:
> N <- 0 ; trace(solve, quote(N <<- N + 1), print=FALSE)
Tracing function "solve" in package "base"
[1] "solve"
> lapply(3:0, function(i)solve(diag(i,3), 1:3))
Error in solve.default(diag(i, 3), 1:3) :
Lapack routine dgesv: system is exactly singul
Yes, I just tried the length() function and it worked beautifully.
Thank you.
On 4/5/2012 6:01 PM, William Dunlap wrote:
I think you are looking for the function called length(). I cannot recreate
your output, since I don't know what is in NZ_Conifers, but with the built-in
dataset mtcars I ge
On Apr 5, 2012, at 3:15 PM, Christopher R. Dolanc wrote:
I keep expecting R to have something analogous to the =count
function in Excel, but I can't find anything. I simply want to count
the data for a given category.
I've been using the ddply() function in the plyr package to
summarize
I think you are looking for the function called length(). I cannot recreate
your output, since I don't know what is in NZ_Conifers, but with the built-in
dataset mtcars I get:
> ddply(mtcars, .(cyl,gear,carb), summarize, MeanWt=mean(wt), N=length(wt))
cyl gear carb MeanWt N
143
6 matches
Mail list logo