statistics

How do I run a ldap query using R?

…衆ロ難τιáo~ 提交于 2019-12-20 15:31:16
问题 I want to make a query against a LDAP directory of how employees are distributed in departments and groups... Something like: " Give me the department name of all the members of a group " and then use R to make a frequency analysis, but I can not find any examples on how to connect and run a LDAP query using R. RCurl seems to have some kind of support ( http://cran.r-project.org/web/packages/RCurl/index.html ): Additionally, the underlying implementation is robust and extensive, supporting

How do I run a ldap query using R?

自闭症网瘾萝莉.ら 提交于 2019-12-20 15:30:02
问题 I want to make a query against a LDAP directory of how employees are distributed in departments and groups... Something like: " Give me the department name of all the members of a group " and then use R to make a frequency analysis, but I can not find any examples on how to connect and run a LDAP query using R. RCurl seems to have some kind of support ( http://cran.r-project.org/web/packages/RCurl/index.html ): Additionally, the underlying implementation is robust and extensive, supporting

Linear interpolation in R

独自空忆成欢 提交于 2019-12-20 12:35:13
问题 I have a dataset of real data, for example looking like this: # Dataset 1 with known data known <- data.frame( x = c(0:6), y = c(0, 10, 20, 23, 41, 39, 61) ) plot (known$x, known$y, type="o") Now I want to get an aswer to the question "What would the Y value for 0.3 be, if all intermediate datapoints of the original dataset, are on a straight line between the surrounding measured values?" # X values of points to interpolate from known data aim <- c(0.3, 0.7, 2.3, 3.3, 4.3, 5.6, 5.9) If you

Is there any statistical library for javascript? [closed]

谁说胖子不能爱 提交于 2019-12-20 11:53:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I need to implement some statistical tests like: T-test, Anova and Wilcoxon on javascript. Similar to Java's - Apache Commons Math Library, is there any statistical tests library or codes for javascript? 回答1: jStat : a JavaScript statistical library http://www.jstat.org/ 回答2: OpenEpi is a Javascript stats

How to fit a random effects model with Subject as random in R?

醉酒当歌 提交于 2019-12-20 11:47:05
问题 Given data of the following form myDat = structure(list(Score = c(1.84, 2.24, 3.8, 2.3, 3.8, 4.55, 1.13, 2.49, 3.74, 2.84, 3.3, 4.82, 1.74, 2.89, 3.39, 2.08, 3.99, 4.07, 1.93, 2.39, 3.63, 2.55, 3.09, 4.76), Subject = c(1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L, 3L, 4L, 4L, 4L, 5L, 5L, 5L, 6L, 6L, 6L, 7L, 7L, 7L, 8L, 8L, 8L), Condition = c(0L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L, 0L, 0L, 0L, 1L, 1L, 1L), Time = c(1L, 2L, 3L, 1L, 2L, 3L, 1L, 2L, 3L, 1L, 2L, 3L, 1L, 2L, 3L,

How can I make voronoi treemaps? [closed]

亡梦爱人 提交于 2019-12-20 10:57:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I want to make voronoi treemaps for statistics data, like newsgraphy Do you know how I can do that in Perl, PHP, Ruby, or Python? 回答1: Nice demos and graphics for Python: http://home.scarlet.be/zoetrope/voronoi/ (Archived copy at wayback) 回答2: Math::Geometry::Voronoi 回答3: Just found this page. I've been working

How to calculate p-value for two lists of floats?

…衆ロ難τιáo~ 提交于 2019-12-20 10:46:07
问题 So I have lists of floats. Like [1.33,2.555,3.2134,4.123123] etc. Those lists are mean frequencies of something. How do I proof that two lists are different? I thought about calculating p-value. Is there a function to do that? I looked through scipy documentation, but couldn't figure out what to use. Can anyone please advice? 回答1: Let's say you have a list of floats like this: >>> data = { ... 'a': [0.9, 1.0, 1.1, 1.2], ... 'b': [0.8, 0.9, 1.0, 1.1], ... 'c': [4.9, 5.0, 5.1, 5.2], ... }

Tracking two different user types with Google Analytics?

孤街浪徒 提交于 2019-12-20 10:25:21
问题 We've got a site with two types of users: Guests Registered users What we are looking for is a method to track both types of users within just one Google Analytics profile. We believe a registered user stays more in the site and has a higher page view count that a guest. Could this be possible within just one profile? Could there be a way to show custom reports in the profile page to show both user's average time and guests average time? I know Analytics is such a powerful application, but I

Fastest way to cross-tabulate two massive logical vectors in R

让人想犯罪 __ 提交于 2019-12-20 09:58:33
问题 For two logical vectors, x and y , of length > 1E8, what is the fastest way to calculate the 2x2 cross tabulations? I suspect the answer is to write it in C/C++, but I wonder if there is something in R that is already quite smart about this problem, as it's not uncommon. Example code, for 300M entries (feel free to let N = 1E8 if 3E8 is too big; I chose a total size just under 2.5GB (2.4GB). I targeted a density of 0.02, just to make it more interesting (one could use a sparse vector, if that

SQL Server STATISTICS

天涯浪子 提交于 2019-12-20 09:56:21
问题 So for this one project, we have a bunch of queries that are executed on a regular basis (every minute or so. I used the "Analyze Query in Database Engine " to check on them. They are pretty simple: select * from tablex where processed='0' There is an index on processed, and each query should return <1000 rows on a table with 1MM records. The Analyzer recommended creating some STATISTICS on this.... So my question is: What are those statistics ? do they really help performance ? how costly