search for: cos2

Displaying 5 results from an estimated 5 matches for "cos2".

Did you mean: col2
2005 Jul 28
1
conversion from SAS
...atepart(date)); month=month(datepart(date)); run; proc sort data=chla_italian; by station; run; /* Check bloom for seasonal cycle outliers */ data sort_dataset; set chla_italian; chla=chl_a; dayno=date-mdy(1,1,year)+1; cos1=cos(2*3.14*dayno/365); sin1=sin(2*3.14*dayno/365); cos2=cos(4*3.14*dayno/365); sin2=sin(4*3.14*dayno/365); cos3=cos(6*3.14*dayno/365); sin3=sin(6*3.14*dayno/365); cos4=cos(8*3.14*dayno/365); sin4=sin(8*3.14*dayno/365); bloom=0; w_chla=1/chla/chla; run; ODS listing close; %macro sort_event(cut_off,last=0); /*proc glm data=sort_datase...
2008 Dec 10
4
tapply within a data.frame: a simpler alternative?
...e example below describes it best: > x <- seq(0, 10, len=100) > my.df <- data.frame(x = rep(x, 3), y=c(3*sin(x), 2*cos(x), > cos(2*x)), # note how the y values have a different maximum > depending on the group > group = factor(rep(c("sin", "cos", "cos2"), each=100))) > library(reshape) > df.melt <- melt(my.df, id=c("x","group")) # make a long format > df.melt <- df.melt[ order(df.melt$group) ,] # order the data.frame > by the group factor > df.melt$norm <- do.call(c, tapply(df.melt$value, df.mel...
2011 Jan 11
0
modified FAST Script from package SensoMineR for the R community - Reg
...###plot.MFA2 Function plot.MFA2<- function (x, axes = c(1, 2), choix = "ind", ellipse = NULL, ellipse.par = NULL, lab.grpe = TRUE, lab.var = TRUE, lab.ind.moy = TRUE, lab.par = FALSE, habillage = "ind", col.hab = NULL, invisible = NULL, partial = NULL, lim.cos2.var = 0, chrono = FALSE, xlim = NULL, ylim = NULL, cex = 1, title = NULL, palette = NULL, new.plot = TRUE, ...) { res.mfa <- x if (!inherits(res.mfa, "MFA")) stop("non convenient data") if (is.null(palette)) palette(c("black", &qu...
2007 Dec 19
0
leaps
...o start with I would like to make sure that I got the output from (3) right. The ouput of (3) tells me that the highest R^2 value was reached after 8 iterations and there are only 8 significant predictors in this model ??? In addition the only significant frequencies (predictors) left are: cos1, cos2, cos4, cos7, sin1,sin2, sin3, sin5 I got this information interactively. But I'm in troubles at extracting it automatically. Any suggestion ? Question: Do I have to run "step" in advance of "regsubsets" for a first-pass model pruning or may I run "regsubsets" on...
2024 Feb 23
0
Data consideration in executing pca
...g message: Error in cor(nnotes) : 'x' must be numeric. I eliminated the first column of names, then read the modified data and then added the names of individuals with rownames. I was able to run PCA and obtain graphical representations of the variables, their coordinates, contributions and cos2. However, when I used fviz_pca_ind to get the graphical representation of the individuals, I got a graphic that considers the variables as individuals. Can you please help me? I have attached the file data_1 .txt file. Many thanks in advance. -------------- next part -------------- An embedded an...