Re: [Rd] Make factanal accept functions for rotation parameter

2024-08-22 Thread Haan, Stefan via R-devel
Dear Martin, The thing I was trying to do, when I tried to pass a function for the rotation parameter was to call factanal repeatedly with different rotations to see which factor model would give the best interpretability. ```R rotate <- function(phi) { G <- matrix(c(cos(phi), sin(phi), -

Re: [Rd] Make factanal accept functions for rotation parameter

2024-08-22 Thread Martin Maechler
> Haan, Stefan via R-devel > on Thu, 22 Aug 2024 14:03:09 + writes: > Dear R developers, > Would it be possible to make `factanal` to also accept functions and > not just function names for its `rotation` parameter? If I understand > correctly, `do.call` also suppo

[Rd] Make factanal accept functions for rotation parameter

2024-08-22 Thread Haan, Stefan via R-devel
Dear R developers, Would it be possible to make `factanal` to also accept functions and not just function names for its `rotation` parameter? If I understand correctly, `do.call` also supports this. Best greetings, Stefan Index: src/library/stats/R/factanal.R =