Dear Samsad,
The usual use of the arcsine transformation for proportions is
arcsine-squareroot. Thus, in R, for proportions in p, you can use
asin(sqrt(p)).
You could have found the asin() function yourself in several ways, including
help.search("arcsin"), which turns up the help page for
Thierry: thanks much for your feedback, and apologies for this tardy response.
You pointed me in the right direction. I did not appreciate how even if the
algorithm ultimately has O(n^2) behavior, it can take a big n to overcome large
coefficents on lower order terms (e.g. the O(1) and O(n)
> On Jul 31, 2016, at 8:07 AM, Bhaskar Mitra wrote:
>
> Hello Everyone,
>
>
> I have a data frame with 2 columns as shown at the end of this mail. I want
> to plot the data in column A;
> however I want the data-points in column A to be of different color based
>
On Sun, 31 Jul 2016, Samsad Afrin Himi wrote:
Dear R-Team,
How can I do arcsine tzransformation in R? My data is proportional score.
?asin
Could you please help me out?
This is such a simple task that it is difficult to tell what very basic
aspects of R you need help with. If you don't
Hello Everyone,
I have a data frame with 2 columns as shown at the end of this mail. I want
to plot the data in column A;
however I want the data-points in column A to be of different color based
on conditions in column B.
i.e all data in column A corresponding to value 0 in column B should be
Dear R-Team,
How can I do arcsine tzransformation in R? My data is proportional score.
Could you please help me out?
Best,
Samsad
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> On Jul 30, 2016, at 7:53 PM, roslinazairimah zakaria
> wrote:
>
> Dear r-users,
>
> I would like to use lapply for the following task:
>
> ## Kolmogorov-Smirnov
> ks.test(stn_all[,1][stn_all[,1] > 0],stn_all_gen[,1][stn_all_gen[,1] > 0])
>
Hi Marco
Thanks for your prompt reply.
First, I have been using the parse(eval()) convention because I saw it
used in some example code for running cpquery, but am happy to drop this
practice.
I have tried running the cpquery in the debug mode, and found that it
typically returns the following
Hi Jeff,
many thanks, that one is the Speedy Gonzalles out of all. Can also do some FUN
stuff.
aggregate.nx.ny.array.aperm <- function( dta, nx = 2, ny = 2, FUN=colMeans, ...
) {
# number of rows in result
nnr <- nrow( dta ) %/% ny
# number of columns in result
nnc <- ncol( dta ) %/% nx
#
Your use of HTML email corrupted your example slightly, but I was able to
fix it. Please follow the Posting Guide and set your emails to Plain Text
mode when posting to this mailing list in the future.
Here is one way:
# you have to be careful about mucking with factors
# convert columns to
Marine:
Thanks for the reproducible example. I would not have fooled with this
otherwise!
1. First note that your specification that you wish to replace only
those values in col3 and col4 of df1 that don't match with those of
df2 is irrelevant: if you replace those that do match you don't change
If you don't need all that FUN flexibility, you can get this done way
faster with the aperm and colMeans functions:
tst <- matrix( seq.int( 1440 * 360 )
, ncol = 1440
, nrow = 360
)
tst.small <- matrix( seq.int( 8 * 4 )
, ncol = 8
12 matches
Mail list logo