Questions tagged [multi-level]
529 questions
1
vote
2 answers
Multilevel quote in JavaScript?
OK, this is perhaps stupidest question ever but bear with me....
How to make this work:
$("#basephoto").after(
'Additional photo:

Dino
- 161
- 1
- 13
1
vote
2 answers
Is it better to have separate tables for articles & comments, or one table for both?
I am working on a little project where a user submits an article to MySQL, and then PHP send the post to the screen. So far so good.
Now i want to extend it to a "two level" post system, where people can comment on the articles.
The case is, i dont…

Lassa
- 121
- 1
- 2
- 5
1
vote
2 answers
matlab: structural data and multi-level indexing
I have a simple problem with structures.
Lets create:
x(1).a(:, :) = magic(2);
x(2).a(:, :) = magic(2)*2;
x(3).a(:, :) = magic(2)*3;
how to list a(1, 1) from all x-es?
i wanted to do it like:
x(1, :).a(1,1)
but there is an error "Scalar index…

Art
- 1,196
- 5
- 18
- 34
1
vote
2 answers
.htaccess rewrite multi-level sub-directory exception
I've been using an .htaccess script for clean URLS on my servers using my own custom CMS:
# this is the initialization
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# these are the rewrite conditions
RewriteCond …

ydragon
- 13
- 3
1
vote
1 answer
asp.net databound menu multilevel
I am currently using an asp.net menu control to load from a table parent/child items. The problem I am having is that if the child has another child. My code is kindof static in that sense and I can't seem to find a better or "the" way to do it. …

Andres
- 2,013
- 6
- 42
- 67
1
vote
3 answers
How to explode string into multi-leveled array?
I was wondering if it's possible to do something like this.
I'm having the following string:
Parent1@MiddleA%Child|Child|Child|MiddleB%Child|Child|Child|Parent2@MiddleA%|Child
And I'd like to explode it into something…

Jack Smith
- 55
- 1
- 8
1
vote
1 answer
translating code from Stata svyset to R for multilevel modeling
I'm struggling to translate codes from Stata to R. I want to do multilevel modeling with complex survey design in R, and I've done a lot of digging but I can't seem to find the perfect solution (or maybe I'm just not understanding codes).
Here's the…

Sun
- 157
- 11
1
vote
0 answers
Estimation Based Time Series Outlier Detection
The data looks like:
This is a time series minute data.
In the data we have multiple days, mkt(market), channel.
Each channel has a viewing(refer to value column) for whole day(refer to day_part column).
If there is no vieving for that minute the…

Asma Damani
- 197
- 3
- 11
1
vote
1 answer
create a dataframe with multilevel columns( 3rd level columns under one of the second level column)
I want to create a dataframe similar to following excel sheet :
I tried following code
# Convert 'Transaction Date' column to string format
data_df['Transaction Date'] = data_df['Transaction Date'].astype(str)
# Extract aisle from bin…

Hiba
- 11
- 1
1
vote
1 answer
Understanding shape of example arguments to forward method in PyTorch
I am trying to compile my PyTorch model into mlir using torch-mlir. The compile method from torch-mlir requires three arguments: 1) model to convert 2) example arguments to use when inferring the shapes of the arguments to the forward method of the…

PrematureCorn
- 121
- 5
1
vote
2 answers
How to add computed columns in a multi-level column dataframe
I have a multi-level column dataframe on the lines of one below:
How can I add columns 'Sales' = 'Qty' * 'Price' one each for each 'Year'?
The input dataframe in dictionary format:
{('Qty', 2001): [50, 50], ('Qty', 2002): [100, 10], ('Qty', 2003):…

Nitin
- 71
- 3
1
vote
1 answer
Multi Level Menu Navbar using Bootstrap 5
I have a problem with a multi-level menu using bootstrap 5, here I have created a multi-level menu but when I run it the menu doesn't appear sideways and instead appears directly under the previous menu, I will include a Codepen link that you can…

Heri Irawan
- 21
- 6
1
vote
1 answer
Looking at results by group in multilevel structural equation model using lavaan
I'm trying to do a multilevel structural equation model using a data set with observations from 32 different countries. I cluster the model by country. The model runs but on the output it says there were 29 clusters. Would there be a way to check…

yana
- 13
- 3
1
vote
1 answer
(SPSS) Assign values to remaining time point based on value on another variable, and looping for each case
I am currently working on analyzing a within-subject dataset with 8 time-ordered assessment points for each subject.
The variables of interest in this example is ID, time point, and accident.
I want to create two variables: accident_intercept and…

Xiaoyang Xia
- 13
- 3
1
vote
1 answer
Creating a multilevel dataframe by clubbing columns with the same name under top level
Consider the following input dataframe:
index | col_1 | col_2 |
1 | 1234 | 4567 |
2 | 3456 | …

Anshul
- 746
- 9
- 22