Displaying 20 results from an estimated 1100 matches similar to: "Problem creation tensor"
2004 Sep 26
2
help for stata user
Hi,
I'm new to R, and I'm STATA user before, could you help me where I can
get document about comparison command between STATA and R.
Thank you very much,
Best regards,
-iip-
2010 Sep 10
3
(no subject)
Hello,
I'm trying to do bar plot where 'sex' will be the category axis and
'occupation' will represent the bars and the clusters will represent
the mean 'income'.
sex occupation income
1 female j 12
2 male b 34
3 male j 22
4 female j 54
5 male b 33
6
2007 Nov 01
2
ploting a comparison of two scores, including the labels in the plot
Hello r-help!
I have data with two kind of ratings on status of 100 occupations. The
first kind of rating is on the percieved "objective" status that these
occupations have in society at large, and the second kind or rating is
on the status that the respondents think that these occuption *should*
have.
The ratings were originally integer values in the rage 1-9, but in the
current data,
2003 Oct 20
4
warning from return() in 1.8 but not in 1.7.0 (PR#4687)
To whom it may concern,
I get the following message when I run my function:
Warning message:
multi-argument returns are deprecated in: return(call.fn, repl, time, from,
to, last.year, occup.m, ant.occ.m,
> version
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 1
minor 8.0
1999 Jul 20
2
tensor() function and sets
Hi Everyone,
To complete the outer() and kronecker() functions in the base, may I
suggest the following tensor() function, which allows the multiplication
of arrays through sets of conformable dimensions. I am happy to write a
help page if required.
The code also needs a setdiff() function which prompts me to ask: what
about simple set functions? I expect many of us have written our own
2008 Jul 29
1
tensor product of equi-spaced B-splines in the unit square
Dear all,
I need to compute tensor product of B-spline defined over equi-spaced
break-points.
I wrote my own program (it works in a 2-dimensional setting)
library(splines)
# set the break-points
Knots = seq(-1,1,length=10)
# number of splines
M = (length(Knots)-4)^2
# short cut to splineDesign function
bspline = function(x) splineDesign(Knots,x,outer.ok = T)
# bivariate tensor product of
2012 May 03
1
Help with getting values from string
Hi All,
I have a doubt. I used macros and i try to pass a value to a macro by
concatenating a bunch of strings. But it does not seem to work. Please help.
I have written down my code and the error message please tell me how to pass
the value that a string points to. Thanks in advance
#macro defined
2003 Nov 23
4
remove 0 rows from a data frame
Dear all,
As part of a larger function, I am randomly removing rows from a data
frame. The number of removed rows is determmined by a Poisson distribution
with a low mean. Sometimes, the random number is 0, and that's when the
problem starts:
My data frame:
> temp
occ x y dbh age
801 0 2977.196 3090.225 6 36.0
802 0 2951.892 3083.769 8 40.6
803 0 2919.111
2013 Jan 04
3
help "reshaping" dataframe
List,
I want to reshape my data, but I'm not sure how to do it... it might be a
simple task, but don't know which package does this.
"occ.data" (see below) is how my original data are arranged, and I know
that with melt() I can reshape it like "y" (see below). However, I just
want to build a matrix like the "y" matrix, but with only 2 dimensions.
Something
2006 Nov 07
1
gamm(): nested tensor product smooths
I'd like to compare tests based on the mixed model representation of additive models, testing among others
y=f(x1)+f(x2) vs y=f(x1)+f(x2)+f(x1,x2)
(testing for additivity)
In mixed model representation, where X represents the unpenalized part of the spline functions and Z the "wiggly" parts, this would be:
y=X%*%beta+ Z_1%*%b_1+ Z_2%*%b_2
vs
y=X%*%beta+ Z_1%*%b_1+ Z_2%*%b_2 + Z_12
2011 Mar 24
2
Questions for "domist... subscript out of bounds"
Hi all,
I am a new user for R.
I faced a questions about subscript out of bounds.
Although I checked some other helps before I sent this email, I still don't know
how to deal with this problems.
I want to use "domain" function to run species distribution model in R.
I used "sp.occ.do<-domain(env.pre, pred_train, factors=c('continent')) &
2007 Aug 01
1
Problem to remove loops in a routine
Dear R-users,
I have written the following code to generate some trellis plots. It
works perfectly fine except that it is quite slow when it is apply to my
typical datasets (over several thousands of lines). I believe the
problem comes from the loops I am using to subset my data.frame. I read
in the archives that the tapply function is often more efficient than a
loop in R. Unfortunately ,
2009 Mar 11
1
matrix multiplication, tensor product, block-diagonal and fast computation
Dear R-users,
I am searching to the "best" way to compute a series of n matrix
multiplications between each matrix (mXm) in an array (mXmXn), and each
column of a matrix (mXn).
Please find below an example with four possible solutions.
The first is a simple for-loop which one might avoid; the second
solution employs the tensor product but then manually selects the right
outcomes. The
2012 Apr 02
1
gamm: tensor product and interaction
Hi list,
I'm working with gamm models of this sort, using Simon Wood's mgcv library:
gm<- gamm(Z~te(x,y),data=DATA,random=list(Group=~1))
gm1<-gamm(Z~te(x,y,by=Factor)+Factor,data=DATA,random=list(Group=~1))
with a dataset of about 70000 rows and 110 levels for Group
in order to test whether tensor product smooths vary across factor levels. I was wondering if comparing those two
2013 Aug 23
1
Setting up 3D tensor product interactions in mgcv
Hi,
I am trying to fit a smoothing model where there are three dimensions
over which I can smooth (x,y,z). I expect interactions between some,
or all, of these terms, and so I have set up my model as
mdl <- gam(PA ~ s(x) + s(y) + s(z) + te(x,y) + te(x,z) + te(y,z) +
te(x,y,z),...)
I have recently read about the ti(), "tensor product interaction
smoother", which takes care of these
2003 Oct 28
1
error message in simulation
Dear R-users,
I am a dentist (so forgive me if my question looks stupid) and came across
a problem when I did simulations to compare a few single level and two
level regressions.
The simulations were interrupted and an error message came out like 'Error
in MEestimate(lmeSt, grps) : Singularity in backsolve at level 0, block 1'.
My collegue suggested that this might be due to my codes
2006 Jan 23
1
nlme in R v.2.2.1 and S-Plus v. 7.0
Dear R-Users,
I am comparing the nlme package in S-Plus (v. 7.0) and R (v. 2.2.1, nlme
package version 3.1-68.1; the lattice, Matrix, and lme4 have also just
been updated today, Jan. 23, 2006) on a PC (2.40 GHz Pentium 4 processor
and 1 GHz RAM) operating on Windows XP. I am using a real data set with
1,191 units with at most 4 repeated measures per unit (data are
incomplete, unbalanced). I
2004 Jan 28
1
Large data sets and memory management in R.
Hello R-users,
First my settings: R-1.8.1, compiled as a 64bit application for a Solaris
5.8, 64 bit. The OS has 8Gb of RAM available and I am the sole user of the
machine, hence pretty much all the 8Gb are available to R.
I am pretty new to R and I am having a hard time to work with large data
sets, which make up over 90% of the anlyses done here. The data set I
imported in R, from S+, has a
2010 Mar 02
3
Keeping the order of data set when plotting
I have a data frame with 3 columns and I want to order the entire list by one
column and then plot. I used order() and it does order the data set but when
I plot it is as if the set is as it was originally. I also can't figure out
how to plot two sets of data on the same graph. I have,
Occupation American.Workers Foreign.Workers
Accountant 12 2
Engineer 45 54
Doctor 50 37
I want
2001 Apr 24
1
New Package Released: PTAk
PTAk_1.1-1 ( Principal Tensor Analysis on k modes) has been released on
CRAN
A multiway method to decompose a tensor (array) of any
order,
as a generalisation of SVD also supporting non-identity
metrics and penalisations.
2-way SVD with these extensions is also available. The
package includes also some other multiway
methods: PCAn (Tucker-n) and