Displaying 20 results from an estimated 1000 matches similar to: "vector name"
2003 Jun 25
2
probelem of function inside function
Hi,
I encountered a problem when I am trying to write my
own function which contains another function. To
simplify a problem, I tried the following simplified
function, hope someone can idenfity the problem for
me.
I have a simple data frame called "testdata" as
following:
>
2007 Jul 05
3
Loop and function
Hi All, I am trying to make a loop for a function and I am using the
following codes. "p" and "var" are some matrix obtained before. I would like
to apply the function "gpdlow" for i in 1:12 and get the "returnlow" for i
in 1:12. But when I ask for "returnlow" there are warnings and it turns out
some strange result.
for (i in 1:12){
gpdlow
2007 Oct 02
5
Linear Regression
Hello,
I would like to fit a linear regression and when I use summary(), I got the
following result:
Call:
lm(formula = weight ~ group - 1)
Residuals:
Min 1Q Median 3Q Max
-1.0710 -0.4938 0.0685 0.2462 1.3690
Coefficients:
Estimate Std. Error t value Pr(>|t|)
groupCtl 5.0320 0.2202 22.85 9.55e-15 ***
groupTrt 4.6610 0.2202 21.16 3.62e-14
2010 May 17
2
Variable variables using R ... e.g., looping over data frames with a numeric separator
Hello,
I have programmed in PHP a lot, and wanted to know if anyone figured out
Variable variables using R.
For example, I have several dataframes of unequal sizes that relate to L
treatments (1, 2, 3, 4, 5,6, L) ... in this case L=7
fData.1
unique.1
fit.nls.1
summary.nls.1
fit.var.1
summary.var.1
.....
fData.2
unique.2
fit.nls.2
summary.nls.2
fit.var.2
summary.var.2
.....
fData.L
unique.L
2013 Mar 25
3
Obtaining the internal integer codes of a factor XXXX
Hi everyone,
I understand the process of obtaining the internal integer codes for
the raw values of a factor (using as.numeric() as below), but what is
the best way to obtain these codes for the levels() of a factor (since
the as.numeric() results don't really make clear which code maps to
which level)?
2007 Jul 03
4
sequences
Hi, I would like to generate a series in the following form (0.8^1, 0.8^2,
..., 0.8^600)
Could anyone tell me how can I achieve that? I am really new to R.
--
View this message in context: http://www.nabble.com/sequences-tf4019146.html#a11414836
Sent from the R help mailing list archive at Nabble.com.
2005 Mar 08
2
problem in compiling openh323
hello all
i am having a problem in compiling openh323.
[root@kamran openh323]# ./configure
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler...
yes
2007 Jun 19
2
Histogram
Hello, I am using the following codes to plot a histogram and density line
for x. For the density line, I just want it to show the two tails, eg, for x
larger than 0.05 ans smaller than -0.05
hist (x, seq(-0.1,0.1,0.01),freq = FALSE)
lines (density(x,bw="SJ"), x> 0.05 & x< (-0.05), col = "red")
But is does not work, can anyone give me some advice?
--
View this
2007 Dec 03
2
Linear Regression, Data is a list
Hello,
I would like to perform a linear regression and the data is a list.e.g
lm(list$abc~., data=list) or lm(abc~., data=list), which would give the same
result.
The problem is I would like to call the response variable in a more general
form. What I try to achieve is sth like lm(list$(paste("a","b","c"))~.,
data=list), but it does not work.
Could anyone give me
2010 Nov 08
1
try (nls stops unexpectedly because of chol2inv error
Hi,
I am running simulations that does multiple comparisons to control.
For each simulation, I need to model 7 nls functions. I loop over 7 to do
the nls using try
if try fails, I break out of that loop, and go to next simulation.
I get warnings on nls failures, but the simulation continues to run, except
when the internal call (internal to nls) of the chol2inv fails.
2009 Jun 23
2
Weighting column entries in a data frame
Hi Guys,
I would like to weight column entries in a data frame by the population of
each state. For example, here is some data:
state statenum year income popul
ALABAMA 1 1 9.703193 3973.00
ALABAMA 1 2 9.745950 3992.00
ALABAMA 1 3 9.762092 4015.00
ALASKA 2 1 10.221640 532.00
ALASKA 2 2 10.169600
2007 Jul 10
3
ECDF, distribution of Pareto, distribution of Normal
Hello all,
I would like to plot the emperical CDF, normal CDF and pareto CDF in the
same graph and I amusing the following codes. "z" is a vector and I just
need the part when z between 1.6 and 3.
plot(ecdf(z), do.points=FALSE, verticals=TRUE,
xlim=c(1.6,3),ylim=c(1-sum(z>1.6)/length(z), 1))
x <- seq(1.6, 3, 0.1)
lines(x,pgpd(x, 1.544,0.4373,-0.2398), col="red")
y
2009 Jan 21
1
problem with rbind
Hi All,
I have a problem with rbind.
I have data that consist of weight height .. etc of 1000 patients. I would
like to find the mean and the standard deviation ( for the weight , height
etc) for each gender.
data<-read.table("data.txt", header=T, sep='\t')
fdata=NULL
for (i in 1:50){
nn<-names(X)[i]
m<-tapply(X[,i],data$gender,mean,na.rm=T)
s<-tapply(X[,i],
2004 Dec 19
2
OH323 channel compile error
Hello
I am trying to compile asterisk-oh323-0.7.0 with pwlib-Janus_patch4
and openh323-Janus_patch4 downloaded from inaccessnetworks so I did
this:
tar -zxvf openh323-Janus_patch4-src-tar.gz
cd openh323
patch -p1 < /root/asterisk-oh323-0.7.0/openh323_1.13.5-make.patch
./configure
make opt
cd asterisk-oh323-0.7.0
vi Makefile (to set the paths and options according to my system...)
NOW I
2020 Sep 15
2
[ELF] String literals don't obey -fdata-sections
Hi there,
When I compile my code with -fdata-sections and -ffunction-sections, I
still see some unused string in my shared library (Android). Actually,
the strings appear together inside a .rodata.str1.1 section instead of
getting their own section. It seems that the C-string literal are
considered differently than other constant and the -fdata-sections is
not respected in
2007 Jun 19
2
Function -return value
Hi, I am trying to write a function with the following codes and I would like
it to return the values for "alpha
beta para parab " seperately. Then I would like to use this funstion for
"variable" with factor "a" and "b". But the result turns out to be a matrix
with element like "Numeric,2" ... I guess they are just the values for
2020 Sep 16
2
[ELF] String literals don't obey -fdata-sections
On 2020-09-16 00:18, Fangrui Song wrote:
> Usually it is because nobody has noticed the problem or nobody is
> motivated enough to fix the problems, not that they intentionally leave
> a problem open:) I took some time to look at the problem and conclude
> that clang should do nothing on this. Actually, with the clang behavior,
> you can discard "Unused" if you use LLD.
2007 Jun 29
2
cbind
Hi, I have a series of return data, a and b are factors. I would like to
build a matrix which contains each vector of "returns". I am thinking about
something as following, but I guess there should be a sensible way of doing
this.
returns <- split(return, list(regimef, assetf))
cbind(returns[[1]], returns[[2]],...,returns[[n]])
Could anyone give me some advice? Many thanks.
--
2007 Oct 31
2
cbind()
Hello,
I would like to use the cbind() function to construct a matrix used in the
middle of a function as following
for (i in 1:1000) {
b[i] <- function(cbind(a[[1]][[i]],
a[[2]][[i]],a[[3]][[i]],...a[[67]][[i]]))
}
Is there an easy way of achieving this rather than "cbind" every column?
--
View this message in context: http://www.nabble.com/cbind%28%29-tf4724534.html#a13507633
2007 Nov 07
2
Linear Regression
Hello everyone,
I would like to a linear regression with the following code.
lm(a[,"fquamsci"]~., data=a)
a is a list with class "mts" "ts" , and "fquamsci" is the name of the
response variable in a. I would like to do a linear regression of "fquamsci"
to the rest of the variables. But it turns out the "fquamsci" is also
included in