Displaying 20 results from an estimated 1000 matches similar to: "r function definition"
2012 Feb 24
1
Telling plot() the max y value to expect when plotting one distribution and then using lines() to add more distributions
I am plotting three Pearson Type IV distributions. It looks like I have to plot the distribution with the highest value of y and then use lines() to add the two distributions that are shorter / have lower max values of y. The following code figures out which distribution has the max y value, plots it first and then uses lines for the other two distributions with a series of three if statements.
2010 Jul 12
3
(no subject)
Hi all,
I want to add the red color under the standard normal curve to the right
of 1.96.
Can anyone give me a hand? Please see the code below.
Thank you.
x <- seq(-4, 4, length=100)
hx <- dnorm(x)
par(pty="s")
plot(x, hx, type="l", xlab="z value",
ylab="Density", main="density of N(0,1)")
abline(v=1.96, col="red")
2002 Oct 15
5
Specification change requests
Hi,
as Conrad suggested, I've made a complete list of all points in the
specification, which I beleive are errors, or where the explanation
is unclear, contains unneccessary steps and so on.
I hope someone has time to look through the points and if and when
accepting or rejecting them be so very kind and inform me about it.
I will also once again try to work through the residue
2010 Dec 05
2
Windows ACL's on SAMBA file server
I have a Samba 3.5 server running on Ubuntu 10.10
I'm have it the server on my Windows 2003 Domain but am having trouble
setting up the ACL's.
I can set some of my ACL's for users but it doesn't alwasy stick and
apparently giving a user the modify right automatically gives them Full
user rigths. This is probably related but it refuses to let me give any
of my domain users any
2011 Aug 05
3
samba4 asn1_compile issue
Hi,
I am trying to do cross compile Samba4.?Build system generating two binary asn1_compile and compile_et to generate .c files which will then build for our platform.
But it can not execute both binary files.
[ 198/3298] Compiling ASN1 source4/heimdal/lib/asn1/kx509.asn1
/bin/sh: ../build_dir/target-ubicom32-unknown-linux-gnu/samba-4.0.0alpha16/bin/asn1_compile: cannot execute binary file
Waf:
2008 Jul 10
2
princomp loading help
Dear all,
When I print out princomp's loading outputs, there is alwasy a section for "SS loading", "Proportional Var" and "Cumulative Var". Anybody can tell what they are for? Or anyone can direct me to some reference to read about?
Any help will be highly appricated.
Hongsheng
[[alternative HTML version deleted]]
2009 Apr 26
1
Stochastic Gradient Ascent for logistic regression
Hi. guys,
I am trying to write my own Stochastic Gradient Ascent for logistic
regression in R. But it seems that I am having convergence problem.
Am I doing anything wrong, or just the data is off?
Here is my code in R -
lbw <-
read.table("http://www.biostat.jhsph.edu/~ririzarr/Teaching/754/lbw.dat"
, header=TRUE)
attach(lbw)
lbw[1:2,]
low age lwt race smoke ptl ht ui ftv
2004 Jul 01
3
BIC vz SBIC vz SIC
DeaRs,
I have a doubt about:
BIC (Bayesian Information Criterion)
SBIC (Schwartz Bayesian Informarion Criterion)
SIC (Schwartz Information Criterion)
In many references these are know as the same (eg. stepAIC() function) but I
just found a SAS8.2 output that show either the BIC and SIC values for a
logistic regression.. simillary values but different.
1) question: What are the differences?
2011 Sep 22
3
Wine on non-Unix platforms
Greetings everyone. Let me start by stating that I appreciate the enormous undertaking that Wine has been, and I am not suggesting that the ideas I will ask about in this post would be easy (or even possible) to implement, so there's no need to flame the n00b.
As I understand it, Wine is an implementation of the Windows API for Linux and other Unix-like operating systems (Mac OS X, FreeBSD,
2012 Feb 08
28
[PATCH v3 0/6] initial suspend support
This patch series makes suspend support in qemu alot more useful. Right
now the guest can put itself into s3, but qemu will wakeup the guest
instantly. With this patch series applied the guest will stay suspended
instead and there are a few events which can kick the guest out of
suspend state: A monitor command, ps/2 input, serial input, rtc. Not
much yet, but it''s a start with the
2009 Sep 02
4
within: order of newly added variables
Dear R community,
I am using function 'within' in R.2.9.1 to add variables to an existing data.frame. This works wonderful, except for one minor point: The new variables are added to the data in reverse order.
For example:
x <- data.frame(a = 1:3, b = 4:6)
y <- within(x, {
c = a^2
d = b^2
e = c+d
}
)
gives
a b e d c
1 1 4 17 16 1
2 2 5 29 25 4
3 3 6 45 36 9
2012 May 29
1
need help to find type I error rate for modified F statistic
Hello everyone, I want to calculate type I error rate for modified F
statistic for one way robust anova. I need to find the j group trimmed
mean and winsorized sum of squared deviations. Here I attached my code for
j=2 to make it simple. Originally I have j=4. Hope you can help. I need to
run it for 1000 times
My problem is:
i) the value of F-test obtain from my simulation below is in negative
2003 Jul 09
2
RODBC and Oracle: error "table does not exist"
Dear r-helpers!
I have trouble reading data from an Oracle data base using
RODBC Version 1.0-3,
R Version 1.7.1,
Windows XP,
Oracle8 ODBC Driver Version 8.1.6.4.0:
> library(RODBC)
> channel <- odbcConnect(dsn="PAV32", case="oracle", believeNRows=FALSE)
> # ok, this was succesful
> x <- sqlTables(channel)
> x[37, ]
TABLE_CAT TABLE_SCHEM TABLE_NAME
2008 Jun 05
4
Wine menue entry missing after source installation
Hi,
because wine 1.0 rc3 isn't available via yum (I'm using Fedora 9 btw.) I've installed it via Source-Code. In this case I downloaded it, run ./configure --verbose, followed by make depend, make and make install.
It's installed and seems to run, but there is no entry in Applications.
Have I forgotten to install something for that?
best regarts
Heinrich
2009 Dec 19
1
as.xts convert all my numeric data to character
Hello, all... I've been playing with the TTR package and quantmod, and I'm
loading the Chicago Board of Exchange put/call ratio data via a simple
read.csv call...
CBOEtotal<-read.csv(file="
http://www.cboe.com/publish/ScheduledTask/MktData/datahouse/totalpc.csv
",skip=1)
this gives me a data frame with columns....
> names(CBOEtotal)
[1] "Trade_date"
2020 Sep 11
3
dnsvi and bind_dlz
Hello is there a way to use dnsvi with samba bind_dlz?
When i use this i get error update failed: NOTAUTH
2003 Aug 27
4
read.spss (package foreign) and character columns
Dear R users!
I am using R Version 1.7.1, Windows XP, package "foreign" (Version: 0.6-1),
SPSS 11.5.1.
There is one thing I noticed with "read.spss", and I'd like to ask if this
is considered to be a feature, or possibly a bug:
When reading character columns, character strings seem to get filled with
blanks at the end.
Simple example:
In SPSS, create a file with one
2012 Mar 09
2
using unsigned short instead of short for input frame
Thanks for your appreciated help.
i found casting fromunsigned short to short gives different value: unsigned short FFFF=65535 where short FFFF= -1.
however, can i configure speex codec (specifically speex_encode_int function) to take input of type unsigned short instead of short so that i avoid casting errors ?
Regards,
Mashal
________________________________
From: Yanick Bourbeau
2005 Aug 02
2
net join echoes root password
Hi list,
# net join
asks for the root password (seems to be new).
This is not a problem, but when i do:
# ssh root@remote_host net join mydomain
the root password is echoed on the terminal.
Is this expected behaviour? (I hope not).
Regards,
Heinrich Rebehn
University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -
Phone : +49/421/218-4664
Fax
2010 Oct 28
2
replace text at certain positions in a file
Hello,
I am working with R version 2.10.1 under windows.
In a text file, I need to replace all characters at certain column positions with blanks.
For example, say the file contains two lines and looks like this:
ab34cd78e
fg3 hi78j
I'd like to replace everything at positions 3-4 and 7-8 with blanks, so the output should be:
ab cd e
fg hi j
[I'm not sure if this is really an R